Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 658 Bytes

07-Updating-Scale-by-Setting-Replica-Counts.md

File metadata and controls

29 lines (21 loc) · 658 Bytes

Updating Scale by Setting Replica Counts

One of the features of Kustomize is to update properties in an easy way. Lets update the replicas properties directly from the kustomization.yaml instead of patching:

cat >> deploy/vote/staging/kustomization.yaml << EOF

replicas:
  - name: vote
    count: 10
EOF

Verify the changes are correct by showing the output via:

kustomize build deploy/vote/staging/

Commit and deliver the changes

git add deploy/
git commit -m "chore: scale up vote replicas to 10 in staging"
git push origin HEAD:refs/heads/main

Next: Images and Namespaces