Hello,
I want to run the following command to generate a client certificate:
kubeadm kubeconfig user --client-name=$SUDO_USER --config /tmp/kubeconfig.yml --org system:masters --validity-period 2160h
But it fails with:
Found multiple CRI endpoints on the host. Please define which one do you wish to use by setting the 'criSocket' field in the kubeadm configuration file: unix:///var/run/containerd/containerd.sock, unix:///var/run/cri-dockerd.sock
But I cannot use any --cri-socket
options, I will get unknown flag: --cri-socket
.
How I can specify the CRI socket? Thanks!
Cluster information:
Kubernetes version: 1.24.0
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: CentOS 7.9
CNI and version: N/A
CRI and version: cri-dockerd 0.3.1 / docker 20.10.22