{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38072","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38072/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38072/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38072/events","html_url":"https://github.com/kubernetes/kubernetes/issues/38072","id":193380582,"number":38072,"title":"Updating a deployment scales existing RS to 0 before new RS is ready","user":{"login":"broady","id":24982,"avatar_url":"https://avatars.githubusercontent.com/u/24982?v=3","gravatar_id":"","url":"https://api.github.com/users/broady","html_url":"https://github.com/broady","followers_url":"https://api.github.com/users/broady/followers","following_url":"https://api.github.com/users/broady/following{/other_user}","gists_url":"https://api.github.com/users/broady/gists{/gist_id}","starred_url":"https://api.github.com/users/broady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broady/subscriptions","organizations_url":"https://api.github.com/users/broady/orgs","repos_url":"https://api.github.com/users/broady/repos","events_url":"https://api.github.com/users/broady/events{/privacy}","received_events_url":"https://api.github.com/users/broady/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-04T22:22:24Z","updated_at":"2016-12-05T18:42:22Z","closed_at":null,"body":"**Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):\r\nNo\r\n\r\n**What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.):\r\nhttps://github.com/kubernetes/kubernetes/issues?page=1&q=is%3Aissue+is%3Aopen+rolling+update++ready&utf8=%E2%9C%93\r\n\r\n---\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one):\r\nBug report\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out\r\n    information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n**Kubernetes version** (use `kubectl version`):\r\n1.4.4 client, 1.4.6 cluster\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: GKE\r\n\r\n**What happened**:\r\nRan `kubectl apply -f ...`, updating the version for an image.\r\nObserved the existing RS scale to zero before the new RS was ready (the container has a readinessProbe), resulting in downtime. \r\n\r\n**What you expected to happen**:\r\nTraffic remains routed to the existing RS until the new RS is ready.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nhttps://gist.github.com/c82ae5cf2919684926b8bcc23d6ccddc\r\n\r\n`kubectl apply -f deployment.yaml`\r\n\r\nWait for it to start serving.\r\nModify something like the \"env\" in deployment.yaml\r\nRun `kubectl apply`.\r\n\r\nObserve that the old RC is immediately scaled to zero.\r\n\r\n**Anything else do we need to know**:\r\nN/A"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/264938727","html_url":"https://github.com/kubernetes/kubernetes/issues/38072#issuecomment-264938727","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38072","id":264938727,"user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T18:42:22Z","updated_at":"2016-12-05T18:42:22Z","body":"Yes, you can also simply set it to 0."}}
{"actor":{"display_login":"kargakis"}}