blob: f65939293511ab4a3393c4bde317e186e5cd4e64 [file] [log] [blame]
yuryn5d0587b2017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiTraversal }}
Mandeep Khindafc068432017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-traversal
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: aai-traversal
11 template:
12 metadata:
13 labels:
14 app: aai-traversal
15 name: aai-traversal
16 spec:
kiranya6eea4802017-11-22 12:21:55 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - hbase
23 - --container-name
24 - aai-resources
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: aai-traversal-readiness
Mandeep Khindafc068432017-08-30 14:24:02 +000034 containers:
35 - name: aai-traversal
36 image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}"
37 imagePullPolicy: {{ .Values.pullPolicy }}
38 env:
39 - name: CHEF_BRANCH
40 value: master
41 - name: AAI_CHEF_ENV
42 value: simpledemo
43 - name: AAI_CORE_VERSION
44 value: 1.1.0-SNAPSHOT
45 - name: AAI_CHEF_LOC
46 value: /var/chef/aai-data/environments
47 - name: CHEF_GIT_URL
48 value: http://gerrit.onap.org/r/aai
Mike Elliott47e76d02017-09-22 11:31:54 -040049 - name: RESOURCES_HOSTNAME
50 value: aai-resources.{{ .Values.nsPrefix }}-aai
Mandeep Khindafc068432017-08-30 14:24:02 +000051 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030052 - mountPath: /etc/localtime
53 name: localtime
54 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000055 - mountPath: /var/chef/aai-data/
56 name: aai-data
BorislavGc4bafe12017-10-03 15:40:55 +030057 - mountPath: /var/log/onap
58 name: aai-traversal-logs
59 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
60 name: aai-traversal-log-conf
61 subPath: logback.xml
Mandeep Khindafc068432017-08-30 14:24:02 +000062 ports:
63 - containerPort: 8446
64 readinessProbe:
65 tcpSocket:
66 port: 8446
67 initialDelaySeconds: 5
68 periodSeconds: 10
BorislavGc4bafe12017-10-03 15:40:55 +030069 - name: filebeat-onap-aai-traversal
70 image: {{ .Values.image.filebeat }}
71 imagePullPolicy: {{ .Values.pullPolicy }}
72 volumeMounts:
73 - mountPath: /usr/share/filebeat/filebeat.yml
74 name: filebeat-conf
75 - mountPath: /var/log/onap
76 name: aai-traversal-logs
77 - mountPath: /usr/share/filebeat/data
78 name: aai-traversal-filebeat
Mandeep Khindafc068432017-08-30 14:24:02 +000079 volumes:
yurync400bf52017-09-13 19:21:03 +030080 - name: localtime
81 hostPath:
82 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000083 - name: aai-data
84 hostPath:
85 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGc4bafe12017-10-03 15:40:55 +030086 - name: filebeat-conf
87 hostPath:
BorislavGc14298f2017-12-17 16:33:34 +020088 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
BorislavGc4bafe12017-10-03 15:40:55 +030089 - name: aai-traversal-logs
90 emptyDir: {}
91 - name: aai-traversal-filebeat
92 emptyDir: {}
93 - name: aai-traversal-log-conf
94 configMap:
95 name: aai-traversal-configmap
Mandeep Khindafc068432017-08-30 14:24:02 +000096 restartPolicy: Always
97 imagePullSecrets:
98 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGc4bafe12017-10-03 15:40:55 +030099---
100apiVersion: v1
101kind: ConfigMap
102metadata:
103 name: aai-traversal-configmap
104 namespace: {{ .Values.nsPrefix }}-aai
105data:
106{{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }}
kiranya6eea4802017-11-22 12:21:55 +0000107#{{ end }}