{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32775","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32775/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32775/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32775/events","html_url":"https://github.com/kubernetes/kubernetes/issues/32775","id":177152116,"number":32775,"title":"Zone label should not contain region (AWS cloud provider)","user":{"login":"sirhopcount","id":1218282,"avatar_url":"https://avatars.githubusercontent.com/u/1218282?v=3","gravatar_id":"","url":"https://api.github.com/users/sirhopcount","html_url":"https://github.com/sirhopcount","followers_url":"https://api.github.com/users/sirhopcount/followers","following_url":"https://api.github.com/users/sirhopcount/following{/other_user}","gists_url":"https://api.github.com/users/sirhopcount/gists{/gist_id}","starred_url":"https://api.github.com/users/sirhopcount/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirhopcount/subscriptions","organizations_url":"https://api.github.com/users/sirhopcount/orgs","repos_url":"https://api.github.com/users/sirhopcount/repos","events_url":"https://api.github.com/users/sirhopcount/events{/privacy}","received_events_url":"https://api.github.com/users/sirhopcount/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/control-plane","name":"team/control-plane","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T11:28:15Z","updated_at":"2016-10-19T20:37:20Z","closed_at":null,"body":"Hi,\r\n\r\nI just noticed that the nodes on our (AWS) cluster also have the region in the zone label: \r\n\r\n```\r\nfailure-domain.beta.kubernetes.io/region=eu-west-1\r\nfailure-domain.beta.kubernetes.io/zone=eu-west-1a\r\n```\r\nThis doesn't make sense to me as it prevents you from using the zone label as a selector without knowing the region upfront (which is not always the case). \r\n\r\nIf for example you want to duplicate a k8s cluster on a different region it would require me to edit the manifest and change the zone label everywhere to contain the new region.\r\n\r\nSo say you have 2 nodes in separate availability zones and want to deploy a pod in availability zone **a** I would  expect to just specify the zone as **a**\r\n\r\n```\r\n    nodeSelector:\r\n        failure-domain.beta.kubernetes.io/zone=a\r\n```\r\n\r\nIf for some reason I need to also specify the region you can alway use the _failure-domain.beta.kubernetes.io/region_ label."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/254933367","html_url":"https://github.com/kubernetes/kubernetes/issues/32775#issuecomment-254933367","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32775","id":254933367,"user":{"login":"hjacobs","id":510328,"avatar_url":"https://avatars.githubusercontent.com/u/510328?v=3","gravatar_id":"","url":"https://api.github.com/users/hjacobs","html_url":"https://github.com/hjacobs","followers_url":"https://api.github.com/users/hjacobs/followers","following_url":"https://api.github.com/users/hjacobs/following{/other_user}","gists_url":"https://api.github.com/users/hjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/hjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjacobs/subscriptions","organizations_url":"https://api.github.com/users/hjacobs/orgs","repos_url":"https://api.github.com/users/hjacobs/repos","events_url":"https://api.github.com/users/hjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/hjacobs/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T20:37:20Z","updated_at":"2016-10-19T20:37:20Z","body":"I personally would disagree partly here: the number of availability zones depends on the region, so how can you schedule something in AZ \"c\" in Frankfurt region (\"eu-west-1\") when it only has two availability zones as of now?\r\n\r\nWhat I'm trying to say: you generally need to know the target region in order to properly select a zone (obviously for special cases hardcoded values like \"a\" always work)."}}
{"actor":{"display_login":"hjacobs"}}