elastic_search_deployment.yaml 1.3 KB

1234567891011121314151617181920
  1. {{ $values := (. | mustDeepCopy) }}
  2. {{ $_ := set $values "common" (dict "nameSuffix" "elasticsearch") }}
  3. {{ include "common.deployment.common_config" $values | nindent 0 }}
  4. spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
  5. template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }}
  6. spec:
  7. containers:
  8. - name: {{ .Chart.Name }}
  9. {{ include "common.containers.imageConfig" .Values.elasticsearch.image | nindent 10 }}
  10. volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts ) | nindent 12 }}
  11. ports:
  12. - name: es-port
  13. containerPort: 9200
  14. env:
  15. {{ $envList := (default list .Values.environmentVariables) }}
  16. {{ $envList = mustAppend $envList (dict "name" "discovery.type" "value" "single-node") }}
  17. {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
  18. {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
  19. volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 8 }}