blob: e5339283ab935d2d691fac0c90cc70d76d454516 [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:
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
16 name: sparky-be
17 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:
86 name: sparky-be-configmap
87 - name: aai-sparky-be-model-config
88 configMap:
89 name: sparky-be-model-configmap
90 - name: aai-sparky-be-portal-config
91 configMap:
92 name: sparky-be-portal-configmap
93 - name: aai-sparky-be-auth-config
94 secret:
95 secretName: 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 }}