blob: d93ea2d7cf84b72468d43fc76bfa509a35e8a284 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdcSdcCs }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: sdc-cs
7 name: sdc-cs
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: sdc-cs
13 template:
14 metadata:
15 labels:
16 app: sdc-cs
17 name: sdc-cs
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "sdc-es"
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 ],
kerenj80102842017-08-24 13:54:21 +000039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 "name": "sdc-cs-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - env:
47 - name: ENVNAME
48 value: AUTO
49 - name: HOST_IP
50 valueFrom:
51 fieldRef:
52 fieldPath: status.podIP
53 - name: ES_HEAP_SIZE
54 value: "1024M"
kerenj80102842017-08-24 13:54:21 +000055 image: {{ .Values.image.sdcCassandra }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: sdc-cs
58 volumeMounts:
59 - mountPath: /var/lib/cassandra/
60 name: sdc-sdc-cs-cs
61 - mountPath: /root/chef-solo/environments/
62 name: sdc-environments
63 - mountPath: /etc/localtime
64 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030065 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 - mountPath: /var/lib/jetty/logs
67 name: sdc-logs
68 ports:
69 - containerPort: 9042
70 - containerPort: 9160
71 readinessProbe:
72 tcpSocket:
73 port: 9160
74 initialDelaySeconds: 5
75 periodSeconds: 10
76 volumes:
77 - name: sdc-sdc-cs-cs
BorislavG66a9a5c2017-09-06 15:12:46 +030078 persistentVolumeClaim:
79 claimName: sdc-cs-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040080 - name: sdc-environments
81 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000082 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040083 - name: sdc-localtime
84 hostPath:
85 path: /etc/localtime
86 - name: sdc-logs
87 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000088 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030089 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000090 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030091#{{ end }}