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 |
| 8 | namespace: "{{ .Values.nsPrefix }}-aaf" |
| 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 |
| 51 | hostPath: |
| 52 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2 |
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 }} |