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

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:

command: kube-controller-manager –root-ca-file=/etc/kubernetes/pki/ca.crt –cluster-signing-cert-file=/etc/kubernetes/pki/ca.crt –address= –use-service-account-credentials=true –controllers=*,bootstrapsigner,tokencleaner –kubeconfig=/etc/kubernetes/controller-manager.conf –service-account-private-key-file=/etc/kubernetes/pki/sa.key –cluster-signing-key-file=/etc/kubernetes/pki/ca.key –leader-elect=true –allocate-node-cidrs=true –cluster-cidr= –node-cidr-mask-size=24 Please let me know how to change PodCIDR or - --node-cidr-mask-size to /16 or /8

Thanks Anupam Thakur

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer