yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAafAaf }} |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: aaf |
| 7 | name: aaf |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}" |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: aaf |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: aaf |
| 17 | name: aaf |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 18 | spec: |
kiranya | 8f2d17e | 2017-11-23 07:31:19 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - aaf-cs |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: {{ .Values.image.readiness }} |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: aaf-readiness |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 34 | containers: |
| 35 | - env: |
| 36 | - name: CASSANDRA_CLUSTER |
| 37 | value: cassandra_container |
| 38 | image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }} |
| 39 | imagePullPolicy: {{ .Values.pullPolicy }} |
Dusan Rozman | e755f64 | 2017-10-02 09:55:04 -0400 | [diff] [blame] | 40 | volumeMounts: |
| 41 | - mountPath: /data |
| 42 | name: aaf-data |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 43 | name: aaf |
| 44 | readinessProbe: |
| 45 | tcpSocket: |
| 46 | port: 8101 |
| 47 | initialDelaySeconds: 5 |
| 48 | periodSeconds: 10 |
Dusan Rozman | e755f64 | 2017-10-02 09:55:04 -0400 | [diff] [blame] | 49 | volumes: |
| 50 | - name: aaf-data |
vaibhav_16dec | adb27b4 | 2018-01-17 12:42:39 +0000 | [diff] [blame] | 51 | configMap: |
| 52 | name: aaf-data-configmap |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 53 | imagePullSecrets: |
| 54 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
kiranya | 8f2d17e | 2017-11-23 07:31:19 +0000 | [diff] [blame] | 55 | #{{ end }} |