blob: 84a0d0f28919a15a336a1651c055ff568c7f8c1b [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiTraversal }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-traversal
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda4b881972017-08-30 14:24:02 +00007spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.aaiTraversalReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00009 selector:
10 matchLabels:
11 app: aai-traversal
12 template:
13 metadata:
14 labels:
15 app: aai-traversal
16 name: aai-traversal
17 spec:
kiranya52a57832017-11-22 12:21:55 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - hbase
24 - --container-name
25 - aai-resources
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: aai-traversal-readiness
Mandeep Khinda4b881972017-08-30 14:24:02 +000035 containers:
36 - name: aai-traversal
37 image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}"
38 imagePullPolicy: {{ .Values.pullPolicy }}
39 env:
40 - name: CHEF_BRANCH
41 value: master
42 - name: AAI_CHEF_ENV
43 value: simpledemo
44 - name: AAI_CORE_VERSION
45 value: 1.1.0-SNAPSHOT
46 - name: AAI_CHEF_LOC
47 value: /var/chef/aai-data/environments
48 - name: CHEF_GIT_URL
49 value: http://gerrit.onap.org/r/aai
Mike Elliott95b8c4a2017-09-22 11:31:54 -040050 - name: RESOURCES_HOSTNAME
BorislavG8bfc6cf2018-02-27 15:04:26 +000051 value: aai-resources.{{ .Values.nsPrefix }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000052 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030053 - mountPath: /etc/localtime
54 name: localtime
55 readOnly: true
mayankg2703f313ba92018-02-05 09:01:02 +000056 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
57 subPath: solo.rb
58 name: aai-chef-config
59 - mountPath: /var/chef/aai-data/environments/
Mandeep Khinda4b881972017-08-30 14:24:02 +000060 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030061 - mountPath: /var/log/onap
62 name: aai-traversal-logs
63 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
64 name: aai-traversal-log-conf
65 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000066 ports:
67 - containerPort: 8446
68 readinessProbe:
69 tcpSocket:
70 port: 8446
71 initialDelaySeconds: 5
72 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030073 - name: filebeat-onap-aai-traversal
74 image: {{ .Values.image.filebeat }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
76 volumeMounts:
77 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703f313ba92018-02-05 09:01:02 +000078 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030079 name: filebeat-conf
80 - mountPath: /var/log/onap
81 name: aai-traversal-logs
82 - mountPath: /usr/share/filebeat/data
83 name: aai-traversal-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000084 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030085 - name: localtime
86 hostPath:
87 path: /etc/localtime
mayankg2703f313ba92018-02-05 09:01:02 +000088 - name: aai-chef-config
89 configMap:
90 name: aai-chef-config-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000091 - name: aai-data
mayankg2703f313ba92018-02-05 09:01:02 +000092 configMap:
93 name: aai-resources-environments-configmap
BorislavGb2b99182017-10-03 15:40:55 +030094 - name: filebeat-conf
mayankg2703f313ba92018-02-05 09:01:02 +000095 configMap:
96 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030097 - name: aai-traversal-logs
98 emptyDir: {}
99 - name: aai-traversal-filebeat
100 emptyDir: {}
101 - name: aai-traversal-log-conf
102 configMap:
mayankg2703b090fba2018-02-07 05:48:29 +0000103 name: aai-traversal-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000104 restartPolicy: Always
105 imagePullSecrets:
106 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya52a57832017-11-22 12:21:55 +0000107#{{ end }}