Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating image tag for a stateful set does not upate the pods. #85761

Open
shadycuz opened this issue Nov 30, 2019 · 1 comment

Comments

@shadycuz
Copy link

@shadycuz shadycuz commented Nov 30, 2019

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 and kubectl 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:

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:09:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration:
    DOKS (Digital Ocean Kubernetes)
  • OS (e.g: cat /etc/os-release):
    Ubuntu I think
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
@neolit123

This comment has been minimized.

Copy link
Member

@neolit123 neolit123 commented Nov 30, 2019

/sig apps

@k8s-ci-robot k8s-ci-robot added sig/apps and removed needs-sig labels Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.