Update example to set selector labels

Signed-off-by: Dominic Joseph <dtpjoseph@gmail.com>
pull/6111/head
Dominic Joseph 5 years ago
parent 2f16e0ed26
commit 5af2c31822

@ -19,6 +19,10 @@ metadata:
app.kubernetes.io/name: {{ template "nginx.name" . }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ template "nginx.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
{{- if .Values.podAnnotations }}

Loading…
Cancel
Save