Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default cluster has no server defined #162

Closed
b3nder2016 opened this issue Apr 22, 2017 · 3 comments
Closed

Default cluster has no server defined #162

b3nder2016 opened this issue Apr 22, 2017 · 3 comments

Comments

@b3nder2016
Copy link

I failed on the step 6. I am using AWS EC2 and k8s 1.6.2. here is what I see in the logs:

Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: kubelet.service: Service hold-off time over, scheduling restart.
Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: Stopped Kubernetes Kubelet.
Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: Started Kubernetes Kubelet.
Apr 22 20:15:11 ip-10-1-1-147 kubelet[5401]: Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version.
Apr 22 20:15:11 ip-10-1-1-147 kubelet[5401]: I0422 20:15:11.890481 5401 feature_gate.go:144] feature gates: map[]
Apr 22 20:15:11 ip-10-1-1-147 kubelet[5401]: I0422 20:15:11.890698 5401 bootstrap.go:58] Using bootstrap kubeconfig to generate TLS client cert, key and kubeconfig file
Apr 22 20:15:11 ip-10-1-1-147 kubelet[5401]: error: failed to run Kubelet: unable to load bootstrap kubeconfig: invalid configuration: default cluster has no server defined
Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: kubelet.service: Unit entered failed state.
Apr 22 20:15:11 ip-10-1-1-147 systemd[1]: kubelet.service: Failed with result 'exit-code'.

here is my bootstrap.kubeconfig

apiVersion: v1
clusters:

  • cluster:
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR4RENDQXF5Z0F3SUJBZ0lVZFF3TkkrSHRRS1FzSm9wNkdST0daOU1wcjlNd0RRWUpLb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FqQWRCZ05WSFE0RUZnUVVsOEJXV1YvdVRsTTZQZ3pwaVJ1MEt3Y0FKL293SHdZRFZSMGpCQmd3Rm9BVQpsOEJXV1YvdVRsTTZQZ3pwaVJ1MEt3Y0FKL293RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUpSVEZCWS95SDBrCmp3Um9FU1VtVGFVVGcwY0FzYXpxS3c1NmxGTStZLzZNay93M0MrUGxKa2dSVmloQmttbSs4WFJ6VTRrZTNVWVIKUm5QUWh4MlZqVmZWS3Y3dmQrN2lJekcwS01Selo1eHRqbys1dHdqWnBYZjdNaVZacUc2Q2VXenhZeUZjQktaaApObkpIREtzbGlFQWNPcEdGMHA4OEZoUUc0VnRLb0hnaC92MnFaZUlwemRZZ2dqQUhFWTZVM1BaVWR0eEFJSEV3CjhCYTJnS0NWMFl5ZE01MCtsd0dQWWF2bHoxUjlWckYxWE1lYVN1RzduM0NyYjdOMG9ncERxaG5RajdWOFFHeWQKN0xUK1NwOTQ5Ti9vOUNBbWVDVlQ2aExnaHlUWDNXOU5wYjVlcVZmNHBoRHJ6OVVvd01CbmU1eFJzcW1NTXJibQpmZC93bWJYdUV2Yz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
    server: https://xx.xx.xx.xx:6443
    name: kubernetes-xxx
    contexts:
  • context:
    cluster: kubernetes-xxx
    user: kubelet-bootstrap
    name: default
    current-context: ""
    kind: Config
    preferences: {}
    users:
  • name: kubelet-bootstrap
    user:
    token: f590b80bd982286368edaaf34e2a9270
@RRAlex
Copy link

RRAlex commented May 2, 2017

Not sure if that'll help, but the only difference I see with mine is:
current-context: default

@tevren
Copy link

tevren commented Jul 12, 2017

@RRAlex's solution worked for me.

@kelseyhightower
Copy link
Owner

I've updated all the docs. This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants