kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.5k stars 4.89k forks source link

kindnet CNI fails to connect pods to services on different nodes #12255

Open andriyDev opened 3 years ago

andriyDev commented 3 years ago

Reproduction:

minikube -p coredns start --nodes=2
minikube kubectl -p coredns -- apply -f test/integration/testdata/multinodes/multinode-pod-dns-test.yaml
minikube kubectl -p coredns -- get pods --all-namespaces -o wide
BB_WITH_CD="<copy busybox name on same node as coredns pod>"
BB_NO_CD="<copy busybox name on diff node as coredns pod>"

# Succeeds
minikube kubectl -p coredns -- exec $BB_WITH_CD -- nslookup kubernetes.io
# Fails
minikube kubectl -p coredns -- exec $BB_NO_CD -- nslookup kubernetes.io

Related to #12208.

Upstream issue: https://github.com/kubernetes-sigs/kind/issues/2415

Specifying --cni=calico fixes this issue as far as I can tell, haven't tested other CNIs

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten