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