{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/33664","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/33664/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/33664/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/33664/events","html_url":"https://github.com/kubernetes/kubernetes/issues/33664","id":179819759,"node_id":"MDU6SXNzdWUxNzk4MTk3NTk=","number":33664,"title":"Force pods to re-pull an image without changing the image tag","user":{"login":"yissachar","id":2190867,"node_id":"MDQ6VXNlcjIxOTA4Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/2190867?v=4","gravatar_id":"","url":"https://api.github.com/users/yissachar","html_url":"https://github.com/yissachar","followers_url":"https://api.github.com/users/yissachar/followers","following_url":"https://api.github.com/users/yissachar/following{/other_user}","gists_url":"https://api.github.com/users/yissachar/gists{/gist_id}","starred_url":"https://api.github.com/users/yissachar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yissachar/subscriptions","organizations_url":"https://api.github.com/users/yissachar/orgs","repos_url":"https://api.github.com/users/yissachar/repos","events_url":"https://api.github.com/users/yissachar/events{/privacy}","received_events_url":"https://api.github.com/users/yissachar/received_events","type":"User","site_admin":false},"labels":[{"id":114528223,"node_id":"MDU6TGFiZWwxMTQ1MjgyMjM=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/important-soon","name":"priority/important-soon","color":"eb6420","default":false},{"id":404091735,"node_id":"MDU6TGFiZWw0MDQwOTE3MzU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/apps","name":"sig/apps","color":"d2b48c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":64,"created_at":"2016-09-28T16:20:03Z","updated_at":"2018-09-14T19:30:16Z","closed_at":"2017-02-24T06:24:58Z","author_association":"NONE","body":"### Problem\n\nA frequent question that comes up on Slack and Stack Overflow is how to trigger an update to a Deployment/RS/RC when the image tag hasn't changed but the underlying image has.\n\nConsider:\n1. There is an existing Deployment with image `foo:latest`\n2. User builds a new image `foo:latest` \n3. User pushes `foo:latest` to their registry\n4. User wants to do something here to tell the Deployment to pull the new image and do a rolling-update of existing pods\n\nThe problem is that there is no existing Kubernetes mechanism which properly covers this.\n### Current Workarounds\n- Always change the image tag when deploying a new version\n- Refer to the image hash instead of tag, e.g. `localhost:5000/andy/busybox@sha256:2aac5e7514fbc77125bd315abe9e7b0257db05fe498af01a58e239ebaccf82a8`\n- Use `latest` tag or `imagePullPolicy: Always` and delete the pods. New pods will pull the new image. This approach doesn't do a rolling update and will result in downtime.\n- Fake a change to the Deployment by changing something other than the image\n### Possible Solutions\n- https://github.com/kubernetes/kubernetes/issues/13488 If rolling restart were implemented, users could do a rolling-restart to pull the new image.\n- Have a controller that watches the image registry and automatically updates the Deployment to use the latest image hash for a given tag. See https://github.com/kubernetes/kubernetes/issues/1697#issuecomment-202631815\n\ncc @justinsb \n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/421461395","html_url":"https://github.com/kubernetes/kubernetes/issues/33664#issuecomment-421461395","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/33664","id":421461395,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQ2MTM5NQ==","user":{"login":"jlk","id":146853,"node_id":"MDQ6VXNlcjE0Njg1Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/146853?v=4","gravatar_id":"","url":"https://api.github.com/users/jlk","html_url":"https://github.com/jlk","followers_url":"https://api.github.com/users/jlk/followers","following_url":"https://api.github.com/users/jlk/following{/other_user}","gists_url":"https://api.github.com/users/jlk/gists{/gist_id}","starred_url":"https://api.github.com/users/jlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlk/subscriptions","organizations_url":"https://api.github.com/users/jlk/orgs","repos_url":"https://api.github.com/users/jlk/repos","events_url":"https://api.github.com/users/jlk/events{/privacy}","received_events_url":"https://api.github.com/users/jlk/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T19:30:16Z","updated_at":"2018-09-14T19:30:16Z","author_association":"NONE","body":"@kondaurovDev [Keel](https://keel.sh/) might make more sense for k8s, altho I do like watchtower for stand-alone docker..."}}
{"actor":{"display_login":"jlk"}}