yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdcSdcKb }} |
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-kb |
| 7 | name: sdc-kb |
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-kb |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: sdc-kb |
| 17 | name: sdc-kb |
| 18 | annotations: |
| 19 | pod.beta.kubernetes.io/init-containers: '[ |
| 20 | { |
| 21 | "args": [ |
| 22 | "--container-name", |
| 23 | "sdc-es", |
| 24 | "--container-name", |
| 25 | "sdc-cs" |
| 26 | ], |
| 27 | "command": [ |
| 28 | "/root/ready.py" |
| 29 | ], |
| 30 | "env": [ |
| 31 | { |
| 32 | "name": "NAMESPACE", |
| 33 | "valueFrom": { |
| 34 | "fieldRef": { |
| 35 | "apiVersion": "v1", |
| 36 | "fieldPath": "metadata.namespace" |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | ], |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 41 | "image": "{{ .Values.image.readiness }}", |
| 42 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 43 | "name": "sdc-kb-readiness" |
| 44 | } |
| 45 | ]' |
| 46 | spec: |
| 47 | containers: |
| 48 | - env: |
| 49 | - name: ENVNAME |
| 50 | value: AUTO |
| 51 | - name: ELASTICSEARCH_URL |
| 52 | value: http://sdc-es:9200 |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 53 | image: {{ .Values.image.sdcKibana }} |
| 54 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | name: sdc-kb |
| 56 | volumeMounts: |
| 57 | - mountPath: /root/chef-solo/environments/ |
| 58 | name: sdc-environments |
| 59 | - mountPath: /etc/localtime |
| 60 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 61 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | - mountPath: /var/lib/jetty/logs |
| 63 | name: sdc-logs |
| 64 | ports: |
| 65 | - containerPort: 5601 |
| 66 | readinessProbe: |
| 67 | tcpSocket: |
| 68 | port: 5601 |
| 69 | initialDelaySeconds: 5 |
| 70 | periodSeconds: 10 |
| 71 | volumes: |
| 72 | - name: sdc-environments |
| 73 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 74 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | - name: sdc-localtime |
| 76 | hostPath: |
| 77 | path: /etc/localtime |
| 78 | - name: sdc-logs |
| 79 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 80 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 81 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 82 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 83 | #{{ end }} |