@ -6,12 +6,13 @@ metadata:
# multiple times into the same namespace.
name : {{ template "nginx.fullname" . }}
labels:
# The "app.kubernetes.io/managed-by" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool
# is responsible for.
# The "app.kubernetes.io/managed-by" label is used to track which tool
# deployed a given chart. It is useful for admins who want to see what
# releases a particular tool is responsible for.
app.kubernetes.io/managed-by : {{ .Release.Service }}
# The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
# The "app.kubernetes.io/instance" convention makes it easy to tie a release
# to all of the Kubernetes resources that were created as part of that
# release.
app.kubernetes.io/instance : {{ .Release.Name }}
# This makes it easy to audit chart usage.
helm.sh/chart : {{ .Chart.Name }}-{{ .Chart.Version }}
@ -20,11 +21,11 @@ spec:
replicas : {{ .Values.replicaCount }}
template:
metadata:
{{- if .Values.podAnnotations }}
{{- if .Values.podAnnotations }}
# Allows custom annotations to be specified
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
{{- toYaml .Values.podAnnotations | n indent 8 }}
{{- end }}
labels:
app.kubernetes.io/name : {{ template "nginx.name" . }}
app.kubernetes.io/instance : {{ .Release.Name }}
@ -42,15 +43,16 @@ spec:
- mountPath : /usr/share/nginx/html
name : wwwdata-volume
resources:
# Allow chart users to specify resources. Usually, no default should be set, so this is left to be a conscious
# choice to the chart users and avoids that charts don't run out of the box on, e. g., Minikube when high resource
# requests are specified by default.
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.nodeSelector }}
# Allow chart users to specify resources. Usually, no default should
# be set, so this is left to be a conscious choice to the chart
# users and avoids that charts don't run out of the box on, e. g.,
# Minikube when high resource requests are specified by default.
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.nodeSelector }}
nodeSelector:
# Node selectors can be important on mixed Windows/Linux clusters.
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
# Node selectors can be important on mixed Windows/Linux clusters.
{{- toYaml .Values.nodeSelector | n indent 8 }}
{{- end }}
volumes:
- name : wwwdata-volume
configMap: