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