title: How do I bind my kubernetes cluster master to an elastic ip with AWS?
body: <p>I ran the install script: </p>
  
  <pre><code>export KUBERNETES_PROVIDER=aws; curl -sS https://get.k8s.io | bash
  </code></pre>
  
  <p>And it set up my cluster just fine. The problem is that the master was not on an elastic ip. So I went to the VPC settings in the AWS management console and bound it to one. This obviously changed the ip of the master which I correspondingly changed in <code>.kube/config</code>.</p>
  
  <p>Now whenever I try to do anything with kubectl (e.g. <code>kubectl get pods</code>) I get the error: <code>error: couldn't read version from server: Get https://NEW_IP/api: x509: certificate is valid for OLD_IP, 10.0.0.1, not NEW_IP</code>.</p>
  
  <p>Is there a correct way to bind the master to an elastic IP? How do I fix this?</p>