blob: 484a87f5be55658e6734f166635b753104b71fa2 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiSparkyBe }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: sparky-be
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: sparky-be
11 template:
12 metadata:
13 labels:
14 app: sparky-be
15 name: sparky-be
16 spec:
17 containers:
18 - name: sparky-be
19 image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}"
20 imagePullPolicy: {{ .Values.pullPolicy }}
21 env:
22 - name: CONFIG_HOME
23 value: /opt/app/sparky/config/
24 - name: KEY_MANAGER_PASSWORD
25 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
26 - name: KEY_STORE_PASSWORD
27 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
28 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030029 - mountPath: /etc/localtime
30 name: localtime
31 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000032 - mountPath: /opt/app/sparky/config/
33 name: aai-sparky-be-config
BorislavGb2b99182017-10-03 15:40:55 +030034 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000035 name: aai-sparky-be-logs
BorislavGb2b99182017-10-03 15:40:55 +030036 - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
37 name: aai-sparky-be-log-conf
38 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000039 ports:
40 - containerPort: 9517
41 readinessProbe:
42 tcpSocket:
43 port: 9517
44 initialDelaySeconds: 5
45 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030046 - name: filebeat-onap-aai-sparky
47 image: {{ .Values.image.filebeat }}
48 imagePullPolicy: {{ .Values.pullPolicy }}
49 volumeMounts:
50 - mountPath: /usr/share/filebeat/filebeat.yml
51 name: filebeat-conf
52 - mountPath: /var/log/onap
53 name: aai-sparky-be-logs
54 - mountPath: /usr/share/filebeat/data
55 name: aai-sparky-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000056 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030057 - name: localtime
58 hostPath:
59 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000060 - name: aai-sparky-be-config
61 hostPath:
62 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/"
BorislavGb2b99182017-10-03 15:40:55 +030063 - name: filebeat-conf
Mandeep Khinda4b881972017-08-30 14:24:02 +000064 hostPath:
BorislavG4a022bd2017-12-17 16:33:34 +020065 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030066 - name: aai-sparky-be-logs
67 emptyDir: {}
68 - name: aai-sparky-filebeat
69 emptyDir: {}
70 - name: aai-sparky-be-log-conf
71 configMap:
72 name: aai-sparky-be-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000073 restartPolicy: Always
74 imagePullSecrets:
75 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +030076---
77apiVersion: v1
78kind: ConfigMap
79metadata:
80 name: aai-sparky-be-configmap
81 namespace: {{ .Values.nsPrefix }}-aai
82data:
83{{ (.Files.Glob "resources/sparky-be/conf/logback.xml").AsConfig | indent 2 }}
BorislavG4a022bd2017-12-17 16:33:34 +020084#{{ end }}