I would like to install K8S on a production server But I have some problems when I have to install a network plugin. I don’t know which plugin is the best. I tried with Flannel.
Here is some command line I used.
I launch this command with my user (so not in root mode) :
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config export KUBECONFIG=/etc/kubernetes/admin.conf sudo sysctl net.bridge.bridge-nf-call-iptables=1 kubectl apply -f https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml
The kubectl apply install all the things.
But when i do the command kubectl get pod, there is no pod installed.
is it normal ?
Moreover, if I quit the terminal and relaunch it, i have the message :
error: error loading config file “/etc/kubernetes/kubelet.conf”: open /etc/kubernetes/kubelet.conf: permission denied
Do you know how to solve my errrors ?