Careeroza
Scaling & Updates
Autoscaling
# scale pods on CPU usage (Horizontal Pod Autoscaler)
kubectl autoscale deployment course-api --cpu-percent=70 --min=3 --max=20
# roll out a new image version (rolling update) and roll back if needed
kubectl set image deployment/course-api api=asia-south1-docker.pkg.dev/shop-dev-1234/apps/course-api:1.3.0
kubectl rollout status deployment/course-api
kubectl rollout undo deployment/course-api- Workload Identity lets pods act as a Google service account without keys.
- Use an Ingress / Gateway for HTTPS and path-based routing across services.