23968f9313f5e23d54017d53ecb9d85307a5b57a
[oom.git] / kubernetes / aaf / templates / aaf-cs-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: aaf-cs
5   namespace: "{{ .Values.nsPrefix }}-aaf"
6 spec:
7   replicas: 1
8   selector:
9     matchLabels:
10       app: aaf-cs
11   template:
12     metadata:
13       labels:
14         app: aaf-cs
15       name: aaf-cs
16     spec:
17       hostname: aaf-cs
18       containers:
19       - args:
20         image: {{ .Values.image.csImage }}:{{ .Values.image.csVersion }}
21         imagePullPolicy: {{ .Values.pullPolicy }}
22         name: "aaf-cs"
23         volumeMounts:
24         - mountPath: /data
25           name: aaf-cs-data
26         readinessProbe:
27           tcpSocket:
28             port: 7000
29           initialDelaySeconds: 5
30           periodSeconds: 10
31       volumes:
32         - name: aaf-cs-data
33           hostPath:
34             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data
35       imagePullSecrets:
36       - name: {{ .Values.nsPrefix }}-docker-registry-key