blob: 7ff5e66ee2f2a2fb7defb2699ea15ddb818811fe [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
Mandeep Khinda4b881972017-08-30 14:24:02 +000053 - mountPath: /var/chef/aai-data/
54 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030055 - mountPath: /var/log/onap
56 name: aai-resources-logs
57 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
58 name: aai-resources-log-conf
59 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000060 ports:
61 - containerPort: 8447
62 readinessProbe:
63 tcpSocket:
64 port: 8447
65 initialDelaySeconds: 5
66 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030067 - name: filebeat-onap-aai-resources
68 image: {{ .Values.image.filebeat }}
69 imagePullPolicy: {{ .Values.pullPolicy }}
70 volumeMounts:
71 - mountPath: /usr/share/filebeat/filebeat.yml
72 name: filebeat-conf
73 - mountPath: /var/log/onap
74 name: aai-resources-logs
75 - mountPath: /usr/share/filebeat/data
76 name: aai-resources-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000077 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030078 - name: localtime
79 hostPath:
80 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000081 - name: aai-data
82 hostPath:
83 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGb2b99182017-10-03 15:40:55 +030084 - name: filebeat-conf
85 hostPath:
BorislavG4a022bd2017-12-17 16:33:34 +020086 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030087 - name: aai-resources-logs
88 emptyDir: {}
89 - name: aai-resources-filebeat
90 emptyDir: {}
91 - name: aai-resources-log-conf
92 configMap:
93 name: aai-resources-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000094 restartPolicy: Always
95 imagePullSecrets:
96 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +030097---
98apiVersion: v1
99kind: ConfigMap
100metadata:
101 name: aai-resources-configmap
102 namespace: {{ .Values.nsPrefix }}-aai
103data:
104{{ (.Files.Glob "resources/resources/conf/logback.xml").AsConfig | indent 2 }}
kiranya52a57832017-11-22 12:21:55 +0000105#{{ end }}