blob: fda0055d214e230d72d9a22f651038ae66b31de8 [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
mayankg27032eb57a22018-02-05 09:01:02 +000055 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
56 subPath: solo.rb
57 name: aai-chef-config
58 - mountPath: /var/chef/aai-data/environments/
Mandeep Khindafc068432017-08-30 14:24:02 +000059 name: aai-data
BorislavGc4bafe12017-10-03 15:40:55 +030060 - mountPath: /var/log/onap
61 name: aai-traversal-logs
62 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
63 name: aai-traversal-log-conf
64 subPath: logback.xml
Mandeep Khindafc068432017-08-30 14:24:02 +000065 ports:
66 - containerPort: 8446
67 readinessProbe:
68 tcpSocket:
69 port: 8446
70 initialDelaySeconds: 5
71 periodSeconds: 10
BorislavGc4bafe12017-10-03 15:40:55 +030072 - name: filebeat-onap-aai-traversal
73 image: {{ .Values.image.filebeat }}
74 imagePullPolicy: {{ .Values.pullPolicy }}
75 volumeMounts:
76 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg27032eb57a22018-02-05 09:01:02 +000077 subPath: filebeat.yml
BorislavGc4bafe12017-10-03 15:40:55 +030078 name: filebeat-conf
79 - mountPath: /var/log/onap
80 name: aai-traversal-logs
81 - mountPath: /usr/share/filebeat/data
82 name: aai-traversal-filebeat
Mandeep Khindafc068432017-08-30 14:24:02 +000083 volumes:
yurync400bf52017-09-13 19:21:03 +030084 - name: localtime
85 hostPath:
86 path: /etc/localtime
mayankg27032eb57a22018-02-05 09:01:02 +000087 - name: aai-chef-config
88 configMap:
89 name: aai-chef-config-configmap
Mandeep Khindafc068432017-08-30 14:24:02 +000090 - name: aai-data
mayankg27032eb57a22018-02-05 09:01:02 +000091 configMap:
92 name: aai-resources-environments-configmap
BorislavGc4bafe12017-10-03 15:40:55 +030093 - name: filebeat-conf
mayankg27032eb57a22018-02-05 09:01:02 +000094 configMap:
95 name: aai-filebeat-configmap
BorislavGc4bafe12017-10-03 15:40:55 +030096 - name: aai-traversal-logs
97 emptyDir: {}
98 - name: aai-traversal-filebeat
99 emptyDir: {}
100 - name: aai-traversal-log-conf
101 configMap:
102 name: aai-traversal-configmap
Mandeep Khindafc068432017-08-30 14:24:02 +0000103 restartPolicy: Always
104 imagePullSecrets:
105 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGc4bafe12017-10-03 15:40:55 +0300106---
107apiVersion: v1
108kind: ConfigMap
109metadata:
110 name: aai-traversal-configmap
111 namespace: {{ .Values.nsPrefix }}-aai
112data:
113{{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }}
kiranya6eea4802017-11-22 12:21:55 +0000114#{{ end }}