blob: 6a8ff9308d3d154ef198b44c1daed931faf8244e [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:
28 - mountPath: /opt/app/sparky/config/
29 name: aai-sparky-be-config
30 - mountPath: /logs/
31 name: aai-sparky-be-logs
32 ports:
33 - containerPort: 9517
34 readinessProbe:
35 tcpSocket:
36 port: 9517
37 initialDelaySeconds: 5
38 periodSeconds: 10
39 volumes:
40 - name: aai-sparky-be-config
41 hostPath:
42 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/"
43 - name: aai-sparky-be-logs
44 hostPath:
45 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/logs/"
46 restartPolicy: Always
47 imagePullSecrets:
48 - name: "{{ .Values.nsPrefix }}-docker-registry-key"