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-be |
| 6 | name: sdc-be |
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-be |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: sdc-be |
| 16 | name: sdc-be |
| 17 | annotations: |
| 18 | pod.beta.kubernetes.io/init-containers: '[ |
| 19 | { |
| 20 | "args": [ |
| 21 | "--container-name", |
| 22 | "sdc-es", |
| 23 | "--container-name", |
| 24 | "sdc-cs", |
| 25 | "--container-name", |
| 26 | "sdc-kb" |
| 27 | ], |
| 28 | "command": [ |
| 29 | "/root/ready.py" |
| 30 | ], |
| 31 | "env": [ |
| 32 | { |
| 33 | "name": "NAMESPACE", |
| 34 | "valueFrom": { |
| 35 | "fieldRef": { |
| 36 | "apiVersion": "v1", |
| 37 | "fieldPath": "metadata.namespace" |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 42 | "image": "{{ .Values.image.readiness }}", |
| 43 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | "name": "sdc-be-readiness" |
| 45 | }, |
| 46 | { |
| 47 | "args": [ |
| 48 | "--container-name", |
| 49 | "dmaap" |
| 50 | ], |
| 51 | "command": [ |
| 52 | "/root/ready.py" |
| 53 | ], |
| 54 | "env": [ |
| 55 | { |
| 56 | "name": "NAMESPACE", |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 57 | "value": "{{ .Values.nsPrefix }}-message-router" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | } |
| 59 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 60 | "image": "{{ .Values.image.readiness }}", |
| 61 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | "name": "sdc-dmaap-readiness" |
| 63 | } |
| 64 | ]' |
| 65 | spec: |
| 66 | containers: |
| 67 | - env: |
| 68 | - name: ENVNAME |
| 69 | value: AUTO |
| 70 | - name: HOST_IP |
| 71 | valueFrom: |
| 72 | fieldRef: |
| 73 | fieldPath: status.podIP |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 74 | image: {{ .Values.image.sdcBackend }} |
| 75 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 76 | name: sdc-be |
| 77 | volumeMounts: |
| 78 | - mountPath: /usr/share/elasticsearch/data/ |
| 79 | name: sdc-sdc-es-es |
| 80 | - mountPath: /root/chef-solo/environments/ |
| 81 | name: sdc-environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 82 | - mountPath: /etc/localtime |
| 83 | name: sdc-localtime |
| 84 | - mountPath: /var/lib/jetty/logs |
| 85 | name: sdc-logs |
| 86 | ports: |
| 87 | - containerPort: 8443 |
| 88 | - containerPort: 8080 |
| 89 | readinessProbe: |
| 90 | tcpSocket: |
| 91 | port: 8443 |
| 92 | initialDelaySeconds: 5 |
| 93 | periodSeconds: 10 |
| 94 | volumes: |
| 95 | - name: sdc-sdc-es-es |
| 96 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 97 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 98 | - name: sdc-environments |
| 99 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 100 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 101 | - name: sdc-localtime |
| 102 | hostPath: |
| 103 | path: /etc/localtime |
| 104 | - name: sdc-logs |
| 105 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 106 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 107 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 108 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |