leblancd / kube-v6

Instructions on how to instantiate a multi-node, IPv6-only Kubernetes cluster.
Apache License 2.0
166 stars 22 forks source link

pods cant get ipv6 #4

Closed albarki closed 6 years ago

albarki commented 6 years ago

Hi,

Thanks a lot for that great explanation, I am now managed to start the cluster, but when I tried to create Nginx pods via your exact steps i got an error during the creating of the pod

  Normal   Scheduled               23s               default-scheduler     Successfully assigned nginx-controller-qjdq8 to kube-node-2
  Normal   SuccessfulMountVolume   22s               kubelet, kube-node-2  MountVolume.SetUp succeeded for volume "default-token-6zs9q"
  Warning  FailedCreatePodSandBox  21s               kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000e2a0 Address:{IP:2a0a:e5c0:2:9:f252::5b9 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  19s               kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000f1a0 Address:{IP:2a0a:e5c0:2:9:f252::5bb Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  16s               kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000efd0 Address:{IP:2a0a:e5c0:2:9:f252::5bd Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  14s               kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc4200ac240 Address:{IP:2a0a:e5c0:2:9:f252::5bf Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  11s               kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000edd0 Address:{IP:2a0a:e5c0:2:9:f252::5c1 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  9s                kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000efd0 Address:{IP:2a0a:e5c0:2:9:f252::5c3 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  7s                kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000efd0 Address:{IP:2a0a:e5c0:2:9:f252::5c6 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  5s                kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc4200ac240 Address:{IP:2a0a:e5c0:2:9:f252::5c8 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Warning  FailedCreatePodSandBox  3s                kubelet, kube-node-2  Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc42000f1a0 Address:{IP:2a0a:e5c0:2:9:f252::5c9 Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied
  Normal   SandboxChanged          2s (x9 over 20s)  kubelet, kube-node-2  Pod sandbox changed, it will be killed and re-created.
  Warning  FailedCreatePodSandBox  0s                kubelet, kube-node-2  (combined from similar events): Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "nginx-controller-qjdq8_default" network: failed to add IP addr {Version:6 Interface:0xc420098630 Address:{IP:2a0a:e5c0:2:9:f252::5cc Mask:ffffffffffffffffffff000000000000} Gateway:2a0a:e5c0:2:9:f252::1} to "eth0": permission denied

the thing is there is no eth0 in the machine at all. Appreciate your support. Thanks

albarki commented 6 years ago

The issue resolved, The issue was static route not configured properly in node-2, Thanks

leblancd commented 6 years ago

@albarki - Glad to hear you were able to find the problem! That "failed to add IP addr" error is a bit vague, and I probably wouldn't have thought of checking the static route. In the cases where I've seen this error, there's been a syntax error in the CNI network config.

albarki commented 6 years ago

@leblancd Thanks for that great repository.