It is important to note that, not having a specific tag for a Docker image makes deployment rollback hard. In this example we are going to tag our Docker images every time we have a new update in our application, push it to Docker Hub and deploy it to Kubernetes.

Tagging the image

Assume that you updated your application. Let’s build, tag and push it to Docker Hub.

#kubernetes

Dynamically tagging deployment images in Kubernetes
1.20 GEEK