Added missing mount to aaf deployment yaml
[oom.git] / kubernetes / aaf / templates / aaf-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   labels:
5     app: aaf
6   name: aaf
7   namespace: "{{ .Values.nsPrefix }}-aaf"
8 spec:
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 }}
50         volumeMounts:
51         - mountPath: /data
52           name: aaf-data
53         name: aaf
54         readinessProbe:
55           tcpSocket:
56             port: 8101
57           initialDelaySeconds: 5
58           periodSeconds: 10
59       volumes:
60         - name: aaf-data
61           hostPath:
62             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data2
63       imagePullSecrets:
64       - name: {{ .Values.nsPrefix }}-docker-registry-key