blob: 5950b92c000baeee243470b42429acb4419e5cb3 [file] [log] [blame]
Dusan Rozman7704d2a2017-09-26 16:04:12 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: aaf
6 name: aaf
7 namespace: "{{ .Values.nsPrefix }}-aaf"
8spec:
9 selector:
10 matchLabels:
11 app: aaf
12 template:
13 metadata:
14 labels:
15 app: aaf
16 name: aaf
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "aaf-cs"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
38 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
40 "name": "aaf-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - env:
46 - name: CASSANDRA_CLUSTER
47 value: cassandra_container
48 image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }}
49 imagePullPolicy: {{ .Values.pullPolicy }}
Dusan Rozmane755f642017-10-02 09:55:04 -040050 volumeMounts:
51 - mountPath: /data
52 name: aaf-data
Dusan Rozman7704d2a2017-09-26 16:04:12 -040053 name: aaf
54 readinessProbe:
55 tcpSocket:
56 port: 8101
57 initialDelaySeconds: 5
58 periodSeconds: 10
Dusan Rozmane755f642017-10-02 09:55:04 -040059 volumes:
60 - name: aaf-data
61 hostPath:
62 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2
Dusan Rozman7704d2a2017-09-26 16:04:12 -040063 imagePullSecrets:
64 - name: {{ .Values.nsPrefix }}-docker-registry-key