Skip to content

Commit

Permalink
Merge pull request #214 from jkcfg/2019-06-10-fix-deployment-selector
Browse files Browse the repository at this point in the history
examples: Add a selector to Kubernetes Deployments
  • Loading branch information
dlespiau authored Jun 10, 2019
2 parents 511b02b + 904488e commit db6c7aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/kubernetes/micro-service/kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ function Deployment(service) {
},
},
spec: {
selector: {
matchLabels: {
app: service.name,
},
},
replicas: service.replicas,
revisionHistoryLimit: 2,
strategy: {
Expand Down

0 comments on commit db6c7aa

Please sign in to comment.