Run all components in one namespace
[oom.git] / kubernetes / aai / templates / sparky-be-deployment.yaml
1 #{{ if not .Values.disableAaiSparkyBe }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: aai-sparky-be
6   namespace: "{{ .Values.nsPrefix }}"
7 spec:
8   replicas: {{ .Values.sparkyReplicas }}
9   selector:
10     matchLabels:
11       app: sparky-be
12   template:
13     metadata:
14       labels:
15         app: sparky-be
16       name: aai-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:
30         - mountPath: /etc/localtime
31           name: localtime
32           readOnly: true
33         - 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
37           name: aai-sparky-be-config
38         - 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
57         - mountPath: /var/log/onap
58           name: aai-sparky-be-logs
59         - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
60           name: aai-sparky-be-log-conf
61           subPath: logback.xml
62         ports:
63         - containerPort: 9517
64         readinessProbe:
65           tcpSocket:
66             port: 9517
67           initialDelaySeconds: 5
68           periodSeconds: 10
69       - name: filebeat-onap-aai-sparky
70         image: {{ .Values.image.filebeat }}
71         imagePullPolicy: {{ .Values.pullPolicy }}
72         volumeMounts:
73         - mountPath: /usr/share/filebeat/filebeat.yml
74           subPath: filebeat.yml
75           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
80       volumes:
81       - name: localtime
82         hostPath:
83           path: /etc/localtime
84       - name: aai-sparky-be-config
85         configMap:
86           name: aai-sparky-be-configmap
87       - name: aai-sparky-be-model-config
88         configMap:
89           name: aai-sparky-be-model-configmap
90       - name: aai-sparky-be-portal-config
91         configMap:
92           name: aai-sparky-be-portal-configmap
93       - name: aai-sparky-be-auth-config
94         secret:
95           secretName: aai-sparky-be-secret
96       - name: filebeat-conf
97         configMap:
98           name: aai-filebeat-configmap
99       - name: aai-sparky-be-logs
100         emptyDir: {}
101       - name: aai-sparky-filebeat
102         emptyDir: {}
103       - name: aai-sparky-be-log-conf
104         configMap:
105          name: aai-sparky-be-log-configmap
106       restartPolicy: Always
107       imagePullSecrets:
108       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
109 #{{ end }}