Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: elasticsearch |
| 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: elasticsearch |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: elasticsearch |
| 14 | name: elasticsearch |
| 15 | spec: |
| 16 | hostname: elasticsearch |
| 17 | containers: |
| 18 | - name: elasticsearch |
| 19 | image: "{{ .Values.image.elasticsearchImage }}:{{ .Values.image.elasticsearchVersion }}" |
| 20 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 21 | ports: |
| 22 | - containerPort: 9200 |
| 23 | readinessProbe: |
| 24 | tcpSocket: |
| 25 | port: 9200 |
| 26 | initialDelaySeconds: 5 |
| 27 | periodSeconds: 10 |
| 28 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 29 | - name: localtime |
| 30 | mountPath: /etc/localtime |
| 31 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 32 | - name: elasticsearch-config |
| 33 | mountPath: /usr/share/elasticsearch/config/elasticsearch.yml |
| 34 | - name: elasticsearch-data |
| 35 | mountPath: /usr/share/elasticsearch/data |
| 36 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 37 | - name: localtime |
| 38 | hostPath: |
| 39 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 40 | - name: elasticsearch-config |
| 41 | hostPath: |
| 42 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/config/elasticsearch.yml" |
| 43 | - name: elasticsearch-data |
| 44 | hostPath: |
| 45 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/es-data" |
| 46 | imagePullSecrets: |
| 47 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |