Cluster-api-provider-aws: Running clusterctl with existing infra generates a bad kubeconfig

Created on 31 Oct 2018  路  7Comments  路  Source: kubernetes-sigs/cluster-api-provider-aws

/kind bug

What steps did you take and what happened:
I created a cluster and then created another cluster. The kubeconfig gave me this error:

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

What did you expect to happen:
I expected kubeconfig to connect to my new cluster

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api-provider-aws version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
kinbug prioritimportant-longterm

Most helpful comment

@randomvariable sounds good, there is a temporary workaround to move the cert/key to config rather than status, but I think SSM provides a better long term story here.

All 7 comments

it does however reuse my old vpc but creates a new machine. Maybe this is expected but it doesn't behave very well.

I suspect part of this may be because we are storing the cert material in the status, which is wiped when the cluster-api components are pivoted.

Yup. Should I complete the SSM Parameter store proposal? I think the implementation was pretty trivial when I last did it.

@randomvariable sounds good, there is a temporary workaround to move the cert/key to config rather than status, but I think SSM provides a better long term story here.

Is this fixed now that #355 is merged?

Closing this as it should be fixed in #355, feel free to reopen if not.
/close

@vincepri: Closing this issue.

In response to this:

Closing this as it should be fixed in #355, feel free to reopen if not.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelgugino picture michaelgugino  路  5Comments

tahsinrahman picture tahsinrahman  路  5Comments

detiber picture detiber  路  5Comments

erwinvaneyk picture erwinvaneyk  路  7Comments

randomvariable picture randomvariable  路  7Comments