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-kb |
| 6 | name: sdc-kb |
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-kb |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: sdc-kb |
| 16 | name: sdc-kb |
| 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 | ], |
| 26 | "command": [ |
| 27 | "/root/ready.py" |
| 28 | ], |
| 29 | "env": [ |
| 30 | { |
| 31 | "name": "NAMESPACE", |
| 32 | "valueFrom": { |
| 33 | "fieldRef": { |
| 34 | "apiVersion": "v1", |
| 35 | "fieldPath": "metadata.namespace" |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 40 | "image": "{{ .Values.image.readiness }}", |
| 41 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 42 | "name": "sdc-kb-readiness" |
| 43 | } |
| 44 | ]' |
| 45 | spec: |
| 46 | containers: |
| 47 | - env: |
| 48 | - name: ENVNAME |
| 49 | value: AUTO |
| 50 | - name: ELASTICSEARCH_URL |
| 51 | value: http://sdc-es:9200 |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 52 | image: {{ .Values.image.sdcKibana }} |
| 53 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | name: sdc-kb |
| 55 | volumeMounts: |
| 56 | - mountPath: /root/chef-solo/environments/ |
| 57 | name: sdc-environments |
| 58 | - mountPath: /etc/localtime |
| 59 | name: sdc-localtime |
| 60 | - mountPath: /var/lib/jetty/logs |
| 61 | name: sdc-logs |
| 62 | ports: |
| 63 | - containerPort: 5601 |
| 64 | readinessProbe: |
| 65 | tcpSocket: |
| 66 | port: 5601 |
| 67 | initialDelaySeconds: 5 |
| 68 | periodSeconds: 10 |
| 69 | volumes: |
| 70 | - name: sdc-environments |
| 71 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 72 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
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: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 78 | path: /dockerdata-nfs/{{ .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" |