blob: 6664f188865ea1a8daa59aba705ac5d50835e2a9 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAafAaf }}
Dusan Rozman7704d2a2017-09-26 16:04:12 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: aaf
7 name: aaf
8 namespace: "{{ .Values.nsPrefix }}-aaf"
9spec:
10 selector:
11 matchLabels:
12 app: aaf
13 template:
14 metadata:
15 labels:
16 app: aaf
17 name: aaf
Dusan Rozman7704d2a2017-09-26 16:04:12 -040018 spec:
kiranya8f2d17e2017-11-23 07:31:19 +000019 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 Rozman7704d2a2017-09-26 16:04:12 -040034 containers:
35 - env:
36 - name: CASSANDRA_CLUSTER
37 value: cassandra_container
38 image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }}
39 imagePullPolicy: {{ .Values.pullPolicy }}
Dusan Rozmane755f642017-10-02 09:55:04 -040040 volumeMounts:
41 - mountPath: /data
42 name: aaf-data
Dusan Rozman7704d2a2017-09-26 16:04:12 -040043 name: aaf
44 readinessProbe:
45 tcpSocket:
46 port: 8101
47 initialDelaySeconds: 5
48 periodSeconds: 10
Dusan Rozmane755f642017-10-02 09:55:04 -040049 volumes:
50 - name: aaf-data
51 hostPath:
52 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2
Dusan Rozman7704d2a2017-09-26 16:04:12 -040053 imagePullSecrets:
54 - name: {{ .Values.nsPrefix }}-docker-registry-key
kiranya8f2d17e2017-11-23 07:31:19 +000055#{{ end }}