{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51111","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51111/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51111/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51111/events","html_url":"https://github.com/kubernetes/kubernetes/issues/51111","id":251960847,"number":51111,"title":"autoscaler scales down below minReplicas when \"All metrics below target\"","user":{"login":"dmitrievav","id":7303383,"avatar_url":"https://avatars0.githubusercontent.com/u/7303383?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrievav","html_url":"https://github.com/dmitrievav","followers_url":"https://api.github.com/users/dmitrievav/followers","following_url":"https://api.github.com/users/dmitrievav/following{/other_user}","gists_url":"https://api.github.com/users/dmitrievav/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrievav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrievav/subscriptions","organizations_url":"https://api.github.com/users/dmitrievav/orgs","repos_url":"https://api.github.com/users/dmitrievav/repos","events_url":"https://api.github.com/users/dmitrievav/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrievav/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":238245616,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/autoscaling","name":"sig/autoscaling","color":"d2b48c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-22T13:40:25Z","updated_at":"2017-08-22T13:54:28Z","closed_at":"2017-08-22T13:54:28Z","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n/kind bug\r\n\r\n**What happened**:\r\nautoscaler scales down below minReplicas\r\n\r\n**What you expected to happen**:\r\nautoscaler should not scale down below minReplicas\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\ncreate a deployment with a fake pod which does not really use CPU\r\ncreate a hpa whit following parameters:\r\n- Metrics:\t\t\t\t\t\t( current / target )\r\n  resource cpu on pods  (as a percentage of request):\t0% (0) / 80%\r\n- Min replicas:\t\t\t\t\t\t2\r\n- Max replicas:\t\t\t\t\t\t5\r\n\r\n**Anything else we need to know?**:\r\nhttps://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/controller/podautoscaler/horizontal.go\r\nDoes not have a check to prevent downscaling below minReplicas.\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`): v1.7.0\r\n- Cloud provider or hardware configuration**: AWS\r\n- OS (e.g. from /etc/os-release): Debian jessie\r\n- Kernel (e.g. `uname -a`): Linux ip-10-1-41-75 4.4.65-k8s #1 SMP Tue May 2 15:48:24 UTC 2017 x86_64 GNU/Linux\r\n- Install tools: kops\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/324033533","html_url":"https://github.com/kubernetes/kubernetes/issues/51111#issuecomment-324033533","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51111","id":324033533,"user":{"login":"MaciekPytel","id":7901030,"avatar_url":"https://avatars2.githubusercontent.com/u/7901030?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciekPytel","html_url":"https://github.com/MaciekPytel","followers_url":"https://api.github.com/users/MaciekPytel/followers","following_url":"https://api.github.com/users/MaciekPytel/following{/other_user}","gists_url":"https://api.github.com/users/MaciekPytel/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciekPytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciekPytel/subscriptions","organizations_url":"https://api.github.com/users/MaciekPytel/orgs","repos_url":"https://api.github.com/users/MaciekPytel/repos","events_url":"https://api.github.com/users/MaciekPytel/events{/privacy}","received_events_url":"https://api.github.com/users/MaciekPytel/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T13:54:28Z","updated_at":"2017-08-22T13:54:28Z","body":"This has been fixed in 1.7.2.\r\n\r\nRef: https://github.com/kubernetes/kubernetes/pull/48997, https://github.com/kubernetes/kubernetes/pull/49047"}}
{"actor":{"display_login":"MaciekPytel"}}