Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdating image tag for a stateful set does not upate the pods. #85761
Comments
This comment has been minimized.
This comment has been minimized.
/sig apps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened:
I updated the image tag for a stateful set. I tried three different ways
kubectl apply -f statefulset.yml
,kubectl edit statefulset myapp
andkubectl patch statefulset myapp --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.gitlab.com/myaccount/myrepo/myapp:1.0.2"}]'
What you expected to happen:
I expected that when the image tag changed from 1.0.1 to 1.0.2 in my statefulset, that the pod would be updated to reflect that. Instead the pod and the statefulset showed different images.
How to reproduce it (as minimally and precisely as possible):
Create a stateful set. Then update the image to something different.
Anything else we need to know?:
My pod was failing its readiness probe which is why I was trying to update it. I have set the update strat to rolling.
Environment:
kubectl version
):DOKS (Digital Ocean Kubernetes)
cat /etc/os-release
):Ubuntu I think
uname -a
):