I'm very new to Kubernetes and using k8s v1.4, Minikube v0.15.0 and Spotify maven Docker plugin.
The build process of my project creates a Docker image and push it directly into the Docker engine of Minikube.
The pods are created by the Deployment I've created (using replica set), and the strategy was set to type: RollingUpdate.
I saw this in the documentation:
Note: a Deployment’s rollout is triggered if and only if the Deployment’s pod template (i.e. .spec.template) is changed.
I'm searching for an easy way/workaround to automate the flow:
Build triggered > a new Docker image is pushed (withoud version changing) > Deployment will update the pod > service will expose the new pod.
ImagePullPolicy: Alwaysand kill each pod and have the deployment recreate it. However, if you are creating a new docker image every time, it would make sense to update the tag as well. - Anirudh RamanathanImagePullPolicy: Alwaysis not working with local images, so meanwhile i'm manually delete the pods with specific lable, then the replica set is creating them with the updated image. wondering if there is any way to do it automatically. - yuval simhon