Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: sparky-be |
| 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 6 | spec: |
| 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: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 28 | - mountPath: /etc/localtime |
| 29 | name: localtime |
| 30 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 31 | - mountPath: /opt/app/sparky/config/ |
| 32 | name: aai-sparky-be-config |
| 33 | - mountPath: /logs/ |
| 34 | name: aai-sparky-be-logs |
| 35 | ports: |
| 36 | - containerPort: 9517 |
| 37 | readinessProbe: |
| 38 | tcpSocket: |
| 39 | port: 9517 |
| 40 | initialDelaySeconds: 5 |
| 41 | periodSeconds: 10 |
| 42 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 43 | - name: localtime |
| 44 | hostPath: |
| 45 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 46 | - name: aai-sparky-be-config |
| 47 | hostPath: |
| 48 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/" |
| 49 | - name: aai-sparky-be-logs |
| 50 | hostPath: |
| 51 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/logs/" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 52 | restartPolicy: Always |
| 53 | imagePullSecrets: |
| 54 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |