yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdcSdcCs }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: sdc-cs |
| 7 | name: sdc-cs |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 8 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: sdc-cs |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: sdc-cs |
| 17 | name: sdc-cs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | spec: |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 19 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 34 | 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" |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 44 | image: {{ .Values.image.sdcCassandra }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | 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 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 54 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | - 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 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 67 | persistentVolumeClaim: |
| 68 | claimName: sdc-cs-db |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 69 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 70 | configMap: |
| 71 | name : sdc-environments-configmap |
| 72 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 73 | - name: sdc-localtime |
| 74 | hostPath: |
| 75 | path: /etc/localtime |
| 76 | - name: sdc-logs |
| 77 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 78 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 79 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 80 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 81 | #{{ end }} |