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

[Feature Request] Improve UX for k3d cluster in autok3s UI #697

Open
orangedeng opened this issue Oct 22, 2024 · 0 comments
Open

[Feature Request] Improve UX for k3d cluster in autok3s UI #697

orangedeng opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@orangedeng
Copy link
Member

Is your feature request related to a problem? Please describe.
When running autok3s with docker-compose/docker, default APIPort 0.0.0.0/0 of k3d won't work.
When running k3d inside container with bridge network and mounting docker.sock into it, k3d can't determine the right ip for k3d cluster. The default APIPort must be configured with other ip/port.

Describe the solution you'd like
The default 0.0.0.0/0 just works for k3d cluster when running docker/docker-compose autok3s.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
The solution is following:

  • If the autok3s finds out that it runs inside container with bridge mode and can determine the gateway ip of the default interface, added the default gw ip to k3d tls-san cluster parameter. This is for the use of autok3s/kube-explorer inside container.
  • Added the request hostname from the cluster create request to k3d tls-san cluster parameter. This is for external use
  • Modify the kubeconfig response with the request hostname.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

No branches or pull requests

1 participant