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

[HELP] Cluster not reachable on localhost with kubectl #339

Closed
rr-appadaptive opened this issue Aug 18, 2020 · 6 comments
Closed

[HELP] Cluster not reachable on localhost with kubectl #339

rr-appadaptive opened this issue Aug 18, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@rr-appadaptive
Copy link

What did you do?

  • How was the cluster created?

    • k3d cluster create mycluster --api-port 6550 -p 8081:80@loadbalancer --switch-context
  • What did you do afterwards?

    • k3d cluster list ==> ok
    • docker ps ==> all containers shown and running all port-mappings as expected
    • reboot

What did you expect to happen?

command 'kubectl cluster-info' should return info about the newly created cluster.

Screenshots or terminal output

Bildschirmfoto 2020-08-18 um 17 27 14
Bildschirmfoto 2020-08-18 um 17 27 52
Bildschirmfoto 2020-08-18 um 17 28 22

Which OS & Architecture?

  • Ubuntu 20.04.1 LTS

Which version of k3d?

  • k3d version v3.0.1 / k3s version v.18.6-k3s1

Which version of docker?

  • Version: 19.03.12 / api-version: 1.40
@rr-appadaptive rr-appadaptive added the bug Something isn't working label Aug 18, 2020
@rr-appadaptive
Copy link
Author

Solved the problem myself by explicitly adding the 0.0.0.0 IP to /etc/environment "no_proxy" parameter.

@iwilltry42
Copy link
Member

Hi @rr-appadaptive , thanks for opening this issue!
Glad that you could solve it yourself. So this was about the settings on your local machine, right?
Then I'll go ahead and close this task 👍

@shamork
Copy link

shamork commented Aug 25, 2020

Solved the problem myself by explicitly adding the 0.0.0.0 IP to /etc/environment "no_proxy" parameter.

Also solved my problem. I use a global proxy to download kubectl and other install scripts.
All install scripts aren't support proxy setting. I have to config a global proxy.

@iwilltry42
Copy link
Member

Then you can probably as well use --api-port 127.0.0.1:6443 upon cluster creation. I'd guess that 127.0.0.1 is no_proxy by default?

@Ka0o0
Copy link

Ka0o0 commented Dec 7, 2020

@iwilltry42 why does K3D reference the server by 0.0.0.0 anyway? AFAIK it's not even a valid ip address.

@iwilltry42
Copy link
Member

@Ka0o0 we make the server listen on 0.0.0.0 by default, so it listens on all interfaces (that's what it stands for after all). What's written in the kubeconfig is whatever is the listening address, so we don't assume anything there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants