-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
kind and docker --net=host
#651
Comments
this is approximately a duplicate of #273 note that net=host specifically probably not going to work well, port forwarding is going to work in a saner fashion most likely and is a work in progress. |
please follow #273 |
Does this work now? My use case is to run open-iscsi in a pod and for that to run, the cluster must be running in host network.
|
No, this is not and will not be supported. If you'd like to run a kubernetes node in the host network without isolation, I highly recommend using |
Presumably this won't work for macOS or Windows developers (maybe Windows via WSL2)? |
You can't run docker directly on macOS or Windows, if you're running kind then you're running linux in a VM or directly. For example docker desktop uses a linux VM. You can instead run kubeadm directly on a Linux VM (which, your host must support, because it had to support Linux to get docker/kind running). For macOS I would suggest looking at https://github.com/lima-vm/lima, for Windows I don't have any particular recommendations but there are many options. IN general I would not recommend depending on host network though, it's not going to be nearly as portable to other options as avoiding that dependency, and to run in the host network we can only have a single node/cluster anyhow which makes most of the containerized / devel cluster tools far less useful. |
Currently, there is no possibility to pass custom network type, for kind cluster.
Docs
networking:
example:https://kind.sigs.k8s.io/docs/user/quick-start#ipv6-clusters
https://raw.githubusercontent.com/kubernetes-sigs/kind/master/site/content/docs/user/kind-example-config.yaml
What would you like to be added:
Possibility, to use host network in k8s\kind clusters
Why is this needed:
To be able pass into privileged containers network bridges\etc from host system.
The text was updated successfully, but these errors were encountered: