Skip to content

Commit

Permalink
Add required selector field
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Domingus committed Jul 11, 2020
1 parent 0fe4bf5 commit 3839f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hello-skaffold/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ .Values.container.name }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ .Values.container.name }}
template:
metadata:
labels:
Expand Down
3 changes: 3 additions & 0 deletions hello-sops/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ .Values.container.name }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ .Values.container.name }}
template:
metadata:
labels:
Expand Down

0 comments on commit 3839f52

Please sign in to comment.