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 |
| 18 | annotations: |
| 19 | pod.beta.kubernetes.io/init-containers: '[ |
| 20 | { |
| 21 | "args": [ |
| 22 | "--container-name", |
| 23 | "aaf-cs" |
| 24 | ], |
| 25 | "command": [ |
| 26 | "/root/ready.py" |
| 27 | ], |
| 28 | "env": [ |
| 29 | { |
| 30 | "name": "NAMESPACE", |
| 31 | "valueFrom": { |
| 32 | "fieldRef": { |
| 33 | "apiVersion": "v1", |
| 34 | "fieldPath": "metadata.namespace" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | ], |
| 39 | "image": "{{ .Values.image.readiness }}", |
| 40 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 41 | "name": "aaf-readiness" |
| 42 | } |
| 43 | ]' |
| 44 | spec: |
| 45 | containers: |
| 46 | - env: |
| 47 | - name: CASSANDRA_CLUSTER |
| 48 | value: cassandra_container |
| 49 | image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }} |
| 50 | imagePullPolicy: {{ .Values.pullPolicy }} |
Dusan Rozman | e755f64 | 2017-10-02 09:55:04 -0400 | [diff] [blame] | 51 | volumeMounts: |
| 52 | - mountPath: /data |
| 53 | name: aaf-data |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 54 | name: aaf |
| 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 8101 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
Dusan Rozman | e755f64 | 2017-10-02 09:55:04 -0400 | [diff] [blame] | 60 | volumes: |
| 61 | - name: aaf-data |
| 62 | hostPath: |
| 63 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2 |
Dusan Rozman | 7704d2a | 2017-09-26 16:04:12 -0400 | [diff] [blame] | 64 | imagePullSecrets: |
| 65 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 66 | #{{ end }} |