Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 871 Bytes

04-gitops-playing.md

File metadata and controls

29 lines (22 loc) · 871 Bytes

Play with GitOps

Update code and build new version

  • Go to Cloud Shell and open editor
  • Edit bookinfo-ratings/src/ratings.js line 207 to the text you want
  • Build new version of Docker Image
# Build Ratings Service Docker Image
docker-compose build ratings
# Tagging to new name
docker tag bookinfo-ratings_ratings registry.demo.opsta.co.th/training[X]/bookinfo/ratings:build-2
# Push Rating Docker Image
docker push registry.demo.opsta.co.th/training[X]/bookinfo/ratings:build-2

Change GitOps to new version

  • Go to your ratings repository and click on Web IDE
  • Edit gitops/ratings/helm-release.yaml file and change tag: build-1 to tag: build-2
  • Commit the code
  • Wait for one minute to see the change
watch kubectl get pod