...
to change the max number of pods, we need to add a parameter to the startup line of kubelet.edit
1. Edit the file located at :
Code Block |
---|
/var/snap/microk8s/current/args/kubelet |
add the following line at the end :
Code Block |
---|
--max-pods=250 |
save the file and restart kubelet to apply the change :
Code Block |
---|
sudo service snap.microk8s.daemon-kubelet restart |
2. Edit the file located at :
Code Block |
---|
/var/snap/microk8s/current/args/kube-apiserver |
add the following line at the end :
Code Block |
---|
--allow-privileged=true |
save the file and restart kubelet to apply the change :
...