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 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | spec: |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - sdc-es |
| 25 | - --container-name |
| 26 | - sdc-cs |
| 27 | env: |
| 28 | - name: NAMESPACE |
| 29 | valueFrom: |
| 30 | fieldRef: |
| 31 | apiVersion: v1 |
| 32 | fieldPath: metadata.namespace |
| 33 | image: {{ .Values.image.readiness }} |
| 34 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 35 | name: sdc-kb-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 36 | containers: |
| 37 | - env: |
| 38 | - name: ENVNAME |
| 39 | value: AUTO |
| 40 | - name: ELASTICSEARCH_URL |
| 41 | value: http://sdc-es:9200 |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 42 | image: {{ .Values.image.sdcKibana }} |
| 43 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | name: sdc-kb |
| 45 | volumeMounts: |
| 46 | - mountPath: /root/chef-solo/environments/ |
| 47 | name: sdc-environments |
| 48 | - mountPath: /etc/localtime |
| 49 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 50 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - mountPath: /var/lib/jetty/logs |
| 52 | name: sdc-logs |
| 53 | ports: |
| 54 | - containerPort: 5601 |
| 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 5601 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
| 60 | volumes: |
| 61 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 62 | configMap: |
| 63 | name: sdc-environments-configmap |
| 64 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - name: sdc-localtime |
| 66 | hostPath: |
| 67 | path: /etc/localtime |
| 68 | - name: sdc-logs |
| 69 | hostPath: |
kerenj | 390aec9 | 2018-02-25 13:57:36 +0000 | [diff] [blame] | 70 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 71 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 72 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 98960b6 | 2017-11-22 12:43:29 +0000 | [diff] [blame] | 73 | #{{ end }} |