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: |
| 19 | containers: |
kerenj | 8010284 | 2017-08-24 13:54:21 +0000 | [diff] [blame] | 20 | - image: {{ .Values.image.sdcElasticsearch }} |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 22 | name: sdc-es |
| 23 | env: |
| 24 | - name: ENVNAME |
| 25 | value: "AUTO" |
| 26 | - name: HOST_IP |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | fieldPath: status.podIP |
| 30 | - name: ES_HEAP_SIZE |
| 31 | value: "1024M" |
| 32 | volumeMounts: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | - mountPath: /root/chef-solo/environments/ |
| 34 | name: sdc-environments |
| 35 | - mountPath: /etc/localtime |
| 36 | name: sdc-localtime |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 37 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | - mountPath: /var/lib/jetty/logs |
| 39 | name: sdc-logs |
| 40 | ports: |
| 41 | - containerPort: 9200 |
| 42 | - containerPort: 9300 |
| 43 | readinessProbe: |
| 44 | tcpSocket: |
| 45 | port: 9200 |
| 46 | initialDelaySeconds: 5 |
| 47 | periodSeconds: 10 |
| 48 | volumes: |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - name: sdc-environments |
| 50 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 51 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 52 | - name: sdc-localtime |
| 53 | hostPath: |
| 54 | path: /etc/localtime |
| 55 | - name: sdc-logs |
| 56 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 57 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 58 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 59 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Munir Ahmad | 9d93201 | 2017-12-14 10:57:48 -0500 | [diff] [blame] | 60 | #{{ end }} |