{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7828","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7828/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7828/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7828/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/7828","id":73531864,"number":7828,"title":"Certificate error when connecting to master after AWS cluster stop/start","user":{"login":"madis","id":674621,"avatar_url":"https://avatars.githubusercontent.com/u/674621?v=3","gravatar_id":"","url":"https://api.github.com/users/madis","html_url":"https://github.com/madis","followers_url":"https://api.github.com/users/madis/followers","following_url":"https://api.github.com/users/madis/following{/other_user}","gists_url":"https://api.github.com/users/madis/gists{/gist_id}","starred_url":"https://api.github.com/users/madis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madis/subscriptions","organizations_url":"https://api.github.com/users/madis/orgs","repos_url":"https://api.github.com/users/madis/repos","events_url":"https://api.github.com/users/madis/events{/privacy}","received_events_url":"https://api.github.com/users/madis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/support","name":"kind/support","color":"eb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P3","name":"priority/P3","color":"fef2c0"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/cluster-lifecycle","name":"team/cluster-lifecycle","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-06T06:35:31Z","updated_at":"2015-05-07T08:01:25Z","closed_at":null,"body":"I have set up a kubernetes cluster in AWS. After finishing work with it, I stop the instances. Next time when I start the instances up again, they get assigned new public IP-s. The ```.kube/config``` has IP-s from the first starting. I can update the IP-s in ```.kube/config``` but it results in certificate error ```Error: Get https://52.24.72.124/api/v1beta1/pods?namespace=default: x509: certificate is valid for 54.149.120.248, not 52.24.72.124``` when making requests against kubernetes api (e.g. ```./cluster/../cluster/aws/../../cluster/../_output/dockerized/bin/darwin/amd64/kubectl get pods --context=aws_kubernetes```). \r\n\r\nIs this expected behaviour and how to overcome it? I suppose generating the certificates for elastic IP, which wouldn't change between starting & stopping the cluster could help. But how to pass the elastic IP for kubernetes master to the *kube-up.sh* script?"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/99761137","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/7828#issuecomment-99761137","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7828","id":99761137,"user":{"login":"madis","id":674621,"avatar_url":"https://avatars.githubusercontent.com/u/674621?v=3","gravatar_id":"","url":"https://api.github.com/users/madis","html_url":"https://github.com/madis","followers_url":"https://api.github.com/users/madis/followers","following_url":"https://api.github.com/users/madis/following{/other_user}","gists_url":"https://api.github.com/users/madis/gists{/gist_id}","starred_url":"https://api.github.com/users/madis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madis/subscriptions","organizations_url":"https://api.github.com/users/madis/orgs","repos_url":"https://api.github.com/users/madis/repos","events_url":"https://api.github.com/users/madis/events{/privacy}","received_events_url":"https://api.github.com/users/madis/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T08:01:25Z","updated_at":"2015-05-07T08:01:25Z","body":"I created a pull request that requests & assigns Elastic IP to cluster master instance. https://github.com/GoogleCloudPlatform/kubernetes/pull/7888\r\n\r\nIt allows stopping & starting cluster on AWS EC2 without certificate errors (because the master ip changed and certificate is for the old IP).  If this functionality fits the goals of the project, please send feedback, I'll fix if anything wrong :)"}}