yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdcSdcEs }} |
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-es |
| 7 | name: sdc-es |
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-es |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: sdc-es |
| 17 | name: sdc-es |
| 18 | spec: |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - name: sdc-logs-init |
| 21 | image: {{ .Values.image.ubuntuInit }} |
| 22 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 23 | command: |
| 24 | - /bin/bash |
| 25 | - "-c" |
| 26 | - | |
| 27 | mkdir -p /ubuntu-init/ASDC/ASDC-ES/ |
| 28 | mkdir -p /ubuntu-init/ASDC/ASDC-CS/ |
| 29 | mkdir -p /ubuntu-init/ASDC/ASDC-KB/ |
| 30 | mkdir -p /ubuntu-init/ASDC/ASDC-BE/ |
| 31 | mkdir -p /ubuntu-init/ASDC/ASDC-FE/ |
| 32 | chmod -R 777 /ubuntu-init/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | containers: |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 34 | - image: {{ .Values.image.sdcElasticsearch }} |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 36 | name: sdc-es |
| 37 | env: |
| 38 | - name: ENVNAME |
| 39 | value: "AUTO" |
| 40 | - name: HOST_IP |
| 41 | valueFrom: |
| 42 | fieldRef: |
| 43 | fieldPath: status.podIP |
| 44 | - name: ES_HEAP_SIZE |
| 45 | value: "1024M" |
| 46 | volumeMounts: |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 47 | - name: sdc-logs |
| 48 | mountPath: /ubuntu-init/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - mountPath: /root/chef-solo/environments/ |
| 50 | name: sdc-environments |
| 51 | - mountPath: /etc/localtime |
| 52 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 53 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | - mountPath: /var/lib/jetty/logs |
| 55 | name: sdc-logs |
| 56 | ports: |
| 57 | - containerPort: 9200 |
| 58 | - containerPort: 9300 |
| 59 | readinessProbe: |
| 60 | tcpSocket: |
| 61 | port: 9200 |
| 62 | initialDelaySeconds: 5 |
| 63 | periodSeconds: 10 |
| 64 | volumes: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - name: sdc-environments |
Pramod | ba635b3 | 2018-01-17 12:05:14 +0000 | [diff] [blame] | 66 | configMap : |
| 67 | name : sdc-environments-configmap |
| 68 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 69 | - name: sdc-localtime |
| 70 | hostPath: |
| 71 | path: /etc/localtime |
| 72 | - name: sdc-logs |
| 73 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 74 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 75 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 76 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Munir Ahmad | 9d93201 | 2017-12-14 10:57:48 -0500 | [diff] [blame] | 77 | #{{ end }} |