blob: 2e0b049d522690b1de73ec8855139d40ce5b09b9 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiResources }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-resources
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: aai-resources
11 template:
12 metadata:
13 labels:
14 app: aai-resources
15 name: aai-resources
16 spec:
kiranya52a57832017-11-22 12:21:55 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - hbase
23 env:
24 - name: NAMESPACE
25 valueFrom:
26 fieldRef:
27 apiVersion: v1
28 fieldPath: metadata.namespace
29 image: {{ .Values.image.readiness }}
30 imagePullPolicy: {{ .Values.pullPolicy }}
31 name: aai-resources-readiness
Mandeep Khinda4b881972017-08-30 14:24:02 +000032 containers:
33 - name: aai-resources
34 image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
35 imagePullPolicy: {{ .Values.pullPolicy }}
36 env:
37 - name: CHEF_BRANCH
38 value: master
39 - name: AAI_CHEF_ENV
40 value: simpledemo
41 - name: AAI_CORE_VERSION
42 value: 1.1.0-SNAPSHOT
43 - name: AAI_CHEF_LOC
44 value: /var/chef/aai-data/environments
45 - name: CHEF_GIT_URL
46 value: http://gerrit.onap.org/r/aai
Venkata Harish K Kajur6aaabe02017-10-04 05:06:35 +000047 - name: HBASE_STARTUP_ARTIFICIAL_DELAY
48 value: "60"
Mandeep Khinda4b881972017-08-30 14:24:02 +000049 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030050 - mountPath: /etc/localtime
51 name: localtime
52 readOnly: true
mayankg2703f313ba92018-02-05 09:01:02 +000053 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
54 subPath: solo.rb
55 name: aai-chef-config
56 - mountPath: /var/chef/aai-data/environments/
Mandeep Khinda4b881972017-08-30 14:24:02 +000057 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030058 - mountPath: /var/log/onap
59 name: aai-resources-logs
60 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
61 name: aai-resources-log-conf
62 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000063 ports:
64 - containerPort: 8447
65 readinessProbe:
66 tcpSocket:
67 port: 8447
68 initialDelaySeconds: 5
69 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030070 - name: filebeat-onap-aai-resources
71 image: {{ .Values.image.filebeat }}
72 imagePullPolicy: {{ .Values.pullPolicy }}
73 volumeMounts:
74 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703f313ba92018-02-05 09:01:02 +000075 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030076 name: filebeat-conf
77 - mountPath: /var/log/onap
78 name: aai-resources-logs
79 - mountPath: /usr/share/filebeat/data
80 name: aai-resources-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000081 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030082 - name: localtime
83 hostPath:
84 path: /etc/localtime
mayankg2703f313ba92018-02-05 09:01:02 +000085 - name: aai-chef-config
86 configMap:
87 name: aai-chef-config-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000088 - name: aai-data
mayankg2703f313ba92018-02-05 09:01:02 +000089 configMap:
90 name: aai-resources-environments-configmap
BorislavGb2b99182017-10-03 15:40:55 +030091 - name: filebeat-conf
mayankg2703f313ba92018-02-05 09:01:02 +000092 configMap:
93 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030094 - name: aai-resources-logs
95 emptyDir: {}
96 - name: aai-resources-filebeat
97 emptyDir: {}
98 - name: aai-resources-log-conf
99 configMap:
mayankg2703b090fba2018-02-07 05:48:29 +0000100 name: aai-resources-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000101 restartPolicy: Always
102 imagePullSecrets:
103 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya52a57832017-11-22 12:21:55 +0000104#{{ end }}