blob: c084cd36b60490b10c66d7c4f7658bd9971ed0b3 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Dusan Rozman7704d2a2017-09-26 16:04:12 -04009spec:
vaibhav_16decb508e0f2018-02-16 06:58:06 +000010 replicas: {{ .Values.aafReplicas }}
Dusan Rozman7704d2a2017-09-26 16:04:12 -040011 selector:
12 matchLabels:
13 app: aaf
14 template:
15 metadata:
16 labels:
17 app: aaf
18 name: aaf
Dusan Rozman7704d2a2017-09-26 16:04:12 -040019 spec:
kiranya8f2d17e2017-11-23 07:31:19 +000020 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 Rozman7704d2a2017-09-26 16:04:12 -040035 containers:
36 - env:
37 - name: CASSANDRA_CLUSTER
38 value: cassandra_container
39 image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }}
40 imagePullPolicy: {{ .Values.pullPolicy }}
Dusan Rozmane755f642017-10-02 09:55:04 -040041 volumeMounts:
42 - mountPath: /data
43 name: aaf-data
Dusan Rozman7704d2a2017-09-26 16:04:12 -040044 name: aaf
45 readinessProbe:
46 tcpSocket:
47 port: 8101
48 initialDelaySeconds: 5
49 periodSeconds: 10
Dusan Rozmane755f642017-10-02 09:55:04 -040050 volumes:
51 - name: aaf-data
vaibhav_16decadb27b42018-01-17 12:42:39 +000052 configMap:
53 name: aaf-data-configmap
Dusan Rozman7704d2a2017-09-26 16:04:12 -040054 imagePullSecrets:
55 - name: {{ .Values.nsPrefix }}-docker-registry-key
kiranya8f2d17e2017-11-23 07:31:19 +000056#{{ end }}