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 |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}-sdc" |
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 |
| 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 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 39 | "image": "{{ .Values.image.readiness }}", |
| 40 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | "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" |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 55 | image: {{ .Values.image.sdcCassandra }} |
| 56 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 57 | 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 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 65 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 66 | - 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 |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 78 | persistentVolumeClaim: |
| 79 | claimName: sdc-cs-db |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 80 | - name: sdc-environments |
| 81 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 82 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 83 | - name: sdc-localtime |
| 84 | hostPath: |
| 85 | path: /etc/localtime |
| 86 | - name: sdc-logs |
| 87 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 88 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 89 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 90 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 91 | #{{ end }} |