blob: 844bd20d358186915cdf32060929b36a54309872 [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
yuryn8b3bc5a2017-09-13 19:21:03 +030064 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - mountPath: /var/lib/jetty/logs
66 name: sdc-logs
67 ports:
68 - containerPort: 9042
69 - containerPort: 9160
70 readinessProbe:
71 tcpSocket:
72 port: 9160
73 initialDelaySeconds: 5
74 periodSeconds: 10
75 volumes:
76 - name: sdc-sdc-cs-cs
BorislavG66a9a5c2017-09-06 15:12:46 +030077 persistentVolumeClaim:
78 claimName: sdc-cs-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 - name: sdc-environments
80 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000081 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082 - name: sdc-localtime
83 hostPath:
84 path: /etc/localtime
85 - name: sdc-logs
86 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000087 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030088 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000089 - name: "{{ .Values.nsPrefix }}-docker-registry-key"