Slide 33
Slide 33 text
33
Development Styles > Docker Image Versioning
Each branch/tag is a potential deployment
On each push, images are built and pushed to Registry.
Image versioning should be immutable (if possible)
● Tag name is immutable
● Branch name is not immutable! (Immutability is important for declarative deployments)
Two alternatives for branches deployment:
● Versioning should include a suffix of CI BUILD number (e.g. “master-1”)
● Configure Pods to redeploy always on helm upgrade (for development environments only):
○ Pod Annotation: helm.sh/deploy-date: "{{ .Release.Time.Seconds }}"
○ Pod container: imagePullPolicy: Always
○ Configure Registry to allow redeploys of same version