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 |
| 64 | - mountPath: /var/lib/jetty/logs |
| 65 | name: sdc-logs |
| 66 | ports: |
| 67 | - containerPort: 9042 |
| 68 | - containerPort: 9160 |
| 69 | readinessProbe: |
| 70 | tcpSocket: |
| 71 | port: 9160 |
| 72 | initialDelaySeconds: 5 |
| 73 | periodSeconds: 10 |
| 74 | volumes: |
| 75 | - name: sdc-sdc-cs-cs |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 76 | persistentVolumeClaim: |
| 77 | claimName: sdc-cs-db |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | - name: sdc-environments |
| 79 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 80 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 81 | - name: sdc-localtime |
| 82 | hostPath: |
| 83 | path: /etc/localtime |
| 84 | - name: sdc-logs |
| 85 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 86 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 87 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 88 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |