blob: 32aba467b397e3e00522340da73c1b341d999ad7 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018 spec:
vasundhra98960b62017-11-22 12:43:29 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - sdc-es
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: sdc-cs-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
35 - env:
36 - name: ENVNAME
37 value: AUTO
38 - name: HOST_IP
39 valueFrom:
40 fieldRef:
41 fieldPath: status.podIP
42 - name: ES_HEAP_SIZE
43 value: "1024M"
kerenj80102842017-08-24 13:54:21 +000044 image: {{ .Values.image.sdcCassandra }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: sdc-cs
47 volumeMounts:
48 - mountPath: /var/lib/cassandra/
49 name: sdc-sdc-cs-cs
50 - mountPath: /root/chef-solo/environments/
51 name: sdc-environments
52 - mountPath: /etc/localtime
53 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030054 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 - mountPath: /var/lib/jetty/logs
56 name: sdc-logs
57 ports:
58 - containerPort: 9042
59 - containerPort: 9160
60 readinessProbe:
61 tcpSocket:
62 port: 9160
63 initialDelaySeconds: 5
64 periodSeconds: 10
65 volumes:
66 - name: sdc-sdc-cs-cs
BorislavG66a9a5c2017-09-06 15:12:46 +030067 persistentVolumeClaim:
68 claimName: sdc-cs-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 - name: sdc-environments
Pramodba635b32018-01-17 12:05:14 +000070 configMap:
71 name : sdc-environments-configmap
72 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 - name: sdc-localtime
74 hostPath:
75 path: /etc/localtime
76 - name: sdc-logs
77 hostPath:
kerenj390aec92018-02-25 13:57:36 +000078 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030079 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000080 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +000081#{{ end }}