blob: 56c99ea37fc39f06ac534a051bc5690e43036e7e [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
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 Rozmane755f642017-10-02 09:55:04 -040051 volumeMounts:
52 - mountPath: /data
53 name: aaf-data
Dusan Rozman7704d2a2017-09-26 16:04:12 -040054 name: aaf
55 readinessProbe:
56 tcpSocket:
57 port: 8101
58 initialDelaySeconds: 5
59 periodSeconds: 10
Dusan Rozmane755f642017-10-02 09:55:04 -040060 volumes:
61 - name: aaf-data
62 hostPath:
63 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2
Dusan Rozman7704d2a2017-09-26 16:04:12 -040064 imagePullSecrets:
65 - name: {{ .Values.nsPrefix }}-docker-registry-key
yurynfcef9942017-10-26 17:10:50 +030066#{{ end }}