blob: e73c7b393b166f0c3abc562e84b9e95a12a444cf [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:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: aai-sparky-be
6 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda4b881972017-08-30 14:24:02 +00007spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.sparkyReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00009 selector:
10 matchLabels:
11 app: sparky-be
12 template:
13 metadata:
14 labels:
15 app: sparky-be
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: aai-sparky-be
Mandeep Khinda4b881972017-08-30 14:24:02 +000017 spec:
18 containers:
19 - name: sparky-be
20 image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}"
21 imagePullPolicy: {{ .Values.pullPolicy }}
22 env:
23 - name: CONFIG_HOME
24 value: /opt/app/sparky/config/
25 - name: KEY_MANAGER_PASSWORD
26 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
27 - name: KEY_STORE_PASSWORD
28 value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
29 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030030 - mountPath: /etc/localtime
31 name: localtime
32 readOnly: true
mayankg27039f44dc22018-02-06 16:40:19 +000033 - mountPath: /opt/app/sparky/config/auth/
34 name: aai-sparky-be-auth-config
35 - mountPath: /opt/app/sparky/config/synchronizer.properties
36 subPath: synchronizer.properties
Mandeep Khinda4b881972017-08-30 14:24:02 +000037 name: aai-sparky-be-config
mayankg27039f44dc22018-02-06 16:40:19 +000038 - mountPath: /opt/app/sparky/config/suggestive-search.properties
39 subPath: suggestive-search.properties
40 name: aai-sparky-be-config
41 - mountPath: /opt/app/sparky/config/search-service.properties
42 subPath: search-service.properties
43 name: aai-sparky-be-config
44 - mountPath: /opt/app/sparky/config/roles.config
45 subPath: roles.config
46 name: aai-sparky-be-config
47 - mountPath: /opt/app/sparky/config/elasticsearch.properties
48 subPath: elasticsearch.properties
49 name: aai-sparky-be-config
50 - mountPath: /opt/app/sparky/config/aai.properties
51 subPath: aai.properties
52 name: aai-sparky-be-config
53 - mountPath: /opt/app/sparky/config/model/
54 name: aai-sparky-be-model-config
55 - mountPath: /opt/app/sparky/config/portal/
56 name: aai-sparky-be-portal-config
BorislavGb2b99182017-10-03 15:40:55 +030057 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000058 name: aai-sparky-be-logs
BorislavGb2b99182017-10-03 15:40:55 +030059 - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
60 name: aai-sparky-be-log-conf
61 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000062 ports:
63 - containerPort: 9517
64 readinessProbe:
65 tcpSocket:
66 port: 9517
67 initialDelaySeconds: 5
68 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030069 - name: filebeat-onap-aai-sparky
70 image: {{ .Values.image.filebeat }}
71 imagePullPolicy: {{ .Values.pullPolicy }}
72 volumeMounts:
73 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg27039f44dc22018-02-06 16:40:19 +000074 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030075 name: filebeat-conf
76 - mountPath: /var/log/onap
77 name: aai-sparky-be-logs
78 - mountPath: /usr/share/filebeat/data
79 name: aai-sparky-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000080 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030081 - name: localtime
82 hostPath:
83 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000084 - name: aai-sparky-be-config
mayankg27039f44dc22018-02-06 16:40:19 +000085 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000086 name: aai-sparky-be-configmap
mayankg27039f44dc22018-02-06 16:40:19 +000087 - name: aai-sparky-be-model-config
88 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000089 name: aai-sparky-be-model-configmap
mayankg27039f44dc22018-02-06 16:40:19 +000090 - name: aai-sparky-be-portal-config
91 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000092 name: aai-sparky-be-portal-configmap
mayankg27039f44dc22018-02-06 16:40:19 +000093 - name: aai-sparky-be-auth-config
94 secret:
BorislavG8bfc6cf2018-02-27 15:04:26 +000095 secretName: aai-sparky-be-secret
BorislavGb2b99182017-10-03 15:40:55 +030096 - name: filebeat-conf
mayankg27039f44dc22018-02-06 16:40:19 +000097 configMap:
98 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030099 - name: aai-sparky-be-logs
100 emptyDir: {}
101 - name: aai-sparky-filebeat
102 emptyDir: {}
103 - name: aai-sparky-be-log-conf
104 configMap:
mayankg270338d6d7b2018-02-07 05:29:22 +0000105 name: aai-sparky-be-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000106 restartPolicy: Always
107 imagePullSecrets:
108 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG4a022bd2017-12-17 16:33:34 +0200109#{{ end }}