Skip to content
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

Can't use pod-network-cidr with /25 netmask #59

Open
michaelmior opened this issue Apr 2, 2019 · 0 comments
Open

Can't use pod-network-cidr with /25 netmask #59

michaelmior opened this issue Apr 2, 2019 · 0 comments

Comments

@michaelmior
Copy link

michaelmior commented Apr 2, 2019

I'm trying to specify a pod-network-cidr with a /25 netmask. I first had to specify node-cidr-mask-size by switching to using kubeadm-init.yml instead of CLI args. The cluster now starts and the nodes join just fine. On my master, I can see that the netmask is correctly specified (IP redacted):

$  kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}'
X.X.X.X/25

However, when I try to actually deploy anything, it fails and I get the message below:

  Warning  FailedCreatePodSandBox  9m25s                    kubelet, node02   Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "211a1decea926872a991ecd80eb45f70fdadf7085c69323c733950d9bb84cd0a" network for pod "nginx-deployment-6dd86d77d-xtv2w": NetworkPlugin cni failed to set up pod "nginx-deployment-6dd86d77d-xtv2w_default" network: open /run/flannel/subnet.env: no such file or directory
  Normal   SandboxChanged          9m22s (x12 over 9m33s)   kubelet, node02   Pod sandbox changed, it will be killed and re-created.

Any assistance would be appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant