blob: ee9e0672814a9e3f88d3cf6e7e2f49a47315e613 [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sparky-be
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: sparky-be
10 template:
11 metadata:
12 labels:
13 app: sparky-be
14 name: sparky-be
15 spec:
16 containers:
17 - name: sparky-be
18 image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}"
19 imagePullPolicy: {{ .Values.pullPolicy }}
20 env:
21 - name: CONFIG_HOME
22 value: /opt/app/sparky/config/
23 - name: KEY_MANAGER_PASSWORD
24 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
25 - name: KEY_STORE_PASSWORD
26 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
27 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030028 - mountPath: /etc/localtime
29 name: localtime
30 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 - mountPath: /opt/app/sparky/config/
32 name: aai-sparky-be-config
BorislavGb2b99182017-10-03 15:40:55 +030033 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000034 name: aai-sparky-be-logs
BorislavGb2b99182017-10-03 15:40:55 +030035 - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
36 name: aai-sparky-be-log-conf
37 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000038 ports:
39 - containerPort: 9517
40 readinessProbe:
41 tcpSocket:
42 port: 9517
43 initialDelaySeconds: 5
44 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030045 - name: filebeat-onap-aai-sparky
46 image: {{ .Values.image.filebeat }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 volumeMounts:
49 - mountPath: /usr/share/filebeat/filebeat.yml
50 name: filebeat-conf
51 - mountPath: /var/log/onap
52 name: aai-sparky-be-logs
53 - mountPath: /usr/share/filebeat/data
54 name: aai-sparky-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000055 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030056 - name: localtime
57 hostPath:
58 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000059 - name: aai-sparky-be-config
60 hostPath:
61 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/"
BorislavGb2b99182017-10-03 15:40:55 +030062 - name: filebeat-conf
Mandeep Khinda4b881972017-08-30 14:24:02 +000063 hostPath:
BorislavGb2b99182017-10-03 15:40:55 +030064 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
65 - name: aai-sparky-be-logs
66 emptyDir: {}
67 - name: aai-sparky-filebeat
68 emptyDir: {}
69 - name: aai-sparky-be-log-conf
70 configMap:
71 name: aai-sparky-be-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000072 restartPolicy: Always
73 imagePullSecrets:
74 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +030075---
76apiVersion: v1
77kind: ConfigMap
78metadata:
79 name: aai-sparky-be-configmap
80 namespace: {{ .Values.nsPrefix }}-aai
81data:
82{{ (.Files.Glob "resources/sparky-be/conf/logback.xml").AsConfig | indent 2 }}
83