How to change --node-cidr-mask-size= from 24 to 16 or 8

Posted May 14, 2018 6.9k views
Ubuntu 16.04Kubernetes

I am using “kubeadm –pod-network-cidr init” to start node but kubectl describe node shows PodCIDR: as x.x.x.x/24.

cat /etc/kubernetes/manifests/kube-controller-manager.yaml

apiVersion: v1 kind: Pod metadata: annotations: “” creationTimestamp: null labels: component: kube-controller-manager tier: control-plane name: kube-controller-manager namespace: kube-system spec: containers:

Please let me know how to change PodCIDR or - –node-cidr-mask-size to /16 or /8

Thanks Anupam Thakur

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!