Provide params for pod annotations for elasticsearch.

This commit is contained in:
Anthony Dodd
2019-05-16 10:06:14 -05:00
parent d24ed3e735
commit 2ff4a44b5b
6 changed files with 34 additions and 1 deletions
@@ -21,6 +21,10 @@ spec:
app: {{ template "elasticsearch.name" . }}
release: {{ .Release.Name | quote }}
role: "coordinating-only"
{{- with .Values.coordinating.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }
spec:
{{- if .Values.securityContext.enabled }}
securityContext:
@@ -31,6 +31,10 @@ spec:
chart: {{ template "elasticsearch.chart" . }}
release: {{ .Release.Name | quote }}
role: "data"
{{- with .Values.data.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
@@ -22,6 +22,10 @@ spec:
app: {{ template "elasticsearch.name" . }}
release: {{ .Release.Name | quote }}
role: "ingest"
{{- with .Values.ingest.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
@@ -23,6 +23,10 @@ spec:
chart: {{ template "elasticsearch.chart" . }}
release: {{ .Release.Name | quote }}
role: "master"
{{- with .Values.master.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }
spec:
{{- include "elasticsearch.imagePullSecrets" . | nindent 6 }}
{{- if .Values.securityContext.enabled }}
@@ -133,4 +137,4 @@ spec:
name: {{ template "elasticsearch.fullname" . }}
{{- end }}
- name: "data"
emptyDir: {}
emptyDir: {}
@@ -23,6 +23,10 @@ spec:
release: {{ .Release.Name | quote }}
chart: {{ template "elasticsearch.chart" . }}
role: "metrics"
{{- with .Values.metrics.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }
spec:
{{- include "elasticsearch.imagePullSecrets" . | indent 6 }}
containers:
+13
View File
@@ -85,6 +85,9 @@ master:
annotations: {}
# loadBalancerIP:
## Provide annotations for the master pods.
podAnnotations: {}
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
@@ -151,6 +154,9 @@ coordinating:
annotations: {}
# loadBalancerIP:
## Provide annotations for the coordinating pods.
podAnnotations: {}
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
@@ -189,6 +195,8 @@ data:
antiAffinity: "soft"
## node affinity
# nodeAffinity:
## Provide annotations for the data pods.
podAnnotations: {}
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
@@ -268,6 +276,9 @@ ingest:
annotations: {}
# loadBalancerIP:
## Provide annotations for the ingest pods.
podAnnotations: {}
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
@@ -306,6 +317,8 @@ metrics:
##
# pullSecrets:
# - myRegistryKeySecretName
## Provide annotations for the metrics pods.
podAnnotations: {}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9108"