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] Expose ports AFTER k3d creation #89
Comments
This seems like a highly desirable feature. We don't always know exactly what is going to be deployed in k3s when creating the cluster. |
+1 |
Hi there, apparently I didn't ever comment on this, but I remember that we already had discussions about this @giminni . This is a limitation introduced by how Docker works and nothing that we can't easily fix unfortunately. |
Personally I am now focused on stateful apps, esp. database clusters, which are managed by operators. Recreating PODs would be feasible, one by one, handled by the operator. |
I understand this might not work for everyone, but if you're running a single node on your machine setting the network to the host's network, you also won't have to deal with opening up all required ports. |
The use cases mentioned here can be handled by the new |
@iwilltry42 how to expose k3d-k3s-default-server port to host,not loadbalancer
|
@keyiis , this is not supported, as we have to restart (or rather re-create) the container to add ports (docker won't let you add ports to running containers). This only works properly for the loadbalancer, as it doesn't hold any state. |
I had a problem how to expose the tiller ingress port AFTER k3d creation, to be able to use a local helm client and set the
HELM_HOST
variable toHELM_HOST=localhost:44134
Here my solution:
Forward the internal ingress port over a docker container using socat
Here my procedure:
Example:
Question:
The text was updated successfully, but these errors were encountered: