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