-
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
[MacOS-intel] Ports are not reachable after a docker restart #2824
Comments
Having similar issue on Linux. Did you try to create new pods? Creating new pods also doesn't work for me after docker restart. |
Indeed. Applying a new yaml with for example an Oracle container does nothing. Also removing the current Cassandra pod is not working. Only a cluster delete and create will fix it. |
I've seen more people with same issue, hopefully it'll be fixed soon. |
Try the latest code at HEAD, you can clone the repo and There's a major fix for reboot networking within the cluster coming in the next release. However the port forwards from the host to the container are up to docker. Also, it is extremely unusual to need a single control plane and worker node for testing. I recommend using a single node at all instead for now which has a better chance of not breaking until the fix is released. If you search for milti-node reboot in the issue tracker you can find past discussions if you're curious. But the patch for those is in the latest sources. I'm on vacation until late July but may intermittently pop up. Antonio is also out this week and next I think. |
@BenTheElder I will try to build it using the latest HEAD, thanks. What I don't understand from your comment: "Also, it is extremely unusual to need a single control plane and worker node for testing. I recommend using a single node at all instead for now which has a better chance of not breaking until the fix is released.". How do I simply "use a single node"? I thought I was using a single node;) Or do you mean, use minikube and don't use kind at all?
|
Your config file has two nodes: apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
- role: worker
extraPortMappings:
# cassandra
- containerPort: 30000
hostPort: 9042 A single node equivilant would be: apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- extraPortMappings:
# cassandra
- containerPort: 30000
hostPort: 9042 |
we just released v0.15 which has some important changes related to restarts |
Thanks for the heads-up @BenTheElder, I will check it out |
Is this still an issue? I suspect it was a problem in docker but ... |
What happened:
When Im restarting Docker (or the Macbook itself), the ports, which I have configured in the extraPortMappings section, are no longer available to the host.
What you expected to happen:
Ports should remain exposed after a Docker restart.
How to reproduce it (as minimally and precisely as possible):
I have a Cassandra image, including a service which exposes 9042 on NodePort 30000:
That NodePort is forwarded to the host on 9042 again:
Anything else we need to know?:
After reboot of Docker, curl commands and my DevCenter timeout on the 9042 host port. Before restart, everything is fine. The pods restart (after Docker restart) successfully. When exec'ing into Cassandra, Im able to curl the internal 9042 port just fine.
Environment:
MacOS Monterey
kind version: (use
kind version
):kind v0.14.0 go1.18.2 darwin/amd64Kubernetes version: (use
kubectl version
):docker info
):/etc/os-release
):MacOS Monterey
The text was updated successfully, but these errors were encountered: