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