Skip to content

Commit

Permalink
Add app common label to kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Apr 15, 2020
1 parent 73b03b7 commit 93e338a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions kustomize/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: podinfo
labels:
app: podinfo
spec:
minReadySeconds: 3
revisionHistoryLimit: 5
Expand Down
3 changes: 3 additions & 0 deletions kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ resources:
- hpa.yaml
- deployment.yaml
- service.yaml

commonLabels:
app: podinfo
2 changes: 0 additions & 2 deletions kustomize/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: podinfo
labels:
app: podinfo
spec:
type: ClusterIP
selector:
Expand Down

0 comments on commit 93e338a

Please sign in to comment.