blob: 9021194968eb2381eef2f9f1ed487ffd1f296df1 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-cs
6 name: sdc-cs
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00007 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008spec:
9 selector:
10 matchLabels:
11 app: sdc-cs
12 template:
13 metadata:
14 labels:
15 app: sdc-cs
16 name: sdc-cs
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "sdc-es"
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 ],
kerenj80102842017-08-24 13:54:21 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "sdc-cs-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - env:
46 - name: ENVNAME
47 value: AUTO
48 - name: HOST_IP
49 valueFrom:
50 fieldRef:
51 fieldPath: status.podIP
52 - name: ES_HEAP_SIZE
53 value: "1024M"
kerenj80102842017-08-24 13:54:21 +000054 image: {{ .Values.image.sdcCassandra }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: sdc-cs
57 volumeMounts:
58 - mountPath: /var/lib/cassandra/
59 name: sdc-sdc-cs-cs
60 - mountPath: /root/chef-solo/environments/
61 name: sdc-environments
62 - mountPath: /etc/localtime
63 name: sdc-localtime
64 - mountPath: /var/lib/jetty/logs
65 name: sdc-logs
66 ports:
67 - containerPort: 9042
68 - containerPort: 9160
69 readinessProbe:
70 tcpSocket:
71 port: 9160
72 initialDelaySeconds: 5
73 periodSeconds: 10
74 volumes:
75 - name: sdc-sdc-cs-cs
BorislavG66a9a5c2017-09-06 15:12:46 +030076 persistentVolumeClaim:
77 claimName: sdc-cs-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078 - name: sdc-environments
79 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000080 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040081 - name: sdc-localtime
82 hostPath:
83 path: /etc/localtime
84 - name: sdc-logs
85 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000086 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030087 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000088 - name: "{{ .Values.nsPrefix }}-docker-registry-key"