diff options
Diffstat (limited to 'components/aai-elasticsearch/templates/deployment.yaml')
-rw-r--r-- | components/aai-elasticsearch/templates/deployment.yaml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/components/aai-elasticsearch/templates/deployment.yaml b/components/aai-elasticsearch/templates/deployment.yaml index 0c54738..1f864e4 100644 --- a/components/aai-elasticsearch/templates/deployment.yaml +++ b/components/aai-elasticsearch/templates/deployment.yaml @@ -20,7 +20,7 @@ metadata: labels: app: {{ include "common.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} @@ -31,7 +31,7 @@ spec: metadata: labels: app: {{ include "common.name" . }} - release: {{ .Release.Name }} + release: {{ include "common.release" . }} name: {{ include "common.name" . }} spec: hostname: {{ include "common.name" . }} @@ -60,7 +60,7 @@ spec: - name: elasticsearch-data mountPath: /logroot/ containers: - - name: {{ include "common.name" . }} + - name: {{ include "common.name" . }} image: "{{ .Values.global.loggingRepository }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }} ports: @@ -105,7 +105,6 @@ spec: affinity: {{ toYaml .Values.affinity | indent 8 }} {{- end }} - volumes: - name: localtime hostPath: @@ -114,8 +113,8 @@ spec: configMap: name: {{ include "common.fullname" . }}-es-config - name: elasticsearch-data - hostPath: - path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }} + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }}-data restartPolicy: {{ .Values.restartPolicy }} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |