-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubeadm join fails when multiple CRI sockets exist #1495
Comments
Hi @mythi , thank you for your bug report! |
/assign |
/priority awaiting-more-evidence |
@rosti I tried both
and
with the information in |
this is odd. are you sure you are running kubeadm 1.14? |
@neolit123 both master and worker nodes have
|
One more data point: after disabling docker from the system everything works OK. This only triggers when both docker and CRI-O are running. |
/kind bug |
I wonder what that might be. I have two colleagues who have seen this too and based on their reports I tried it out and I reproduced it right away. They're all on Clear Linux but there's nothing special there as far as I can tell. @neolit123 @rosti did you also try with CRI-O and dockerd running? |
Yes, they were both running and their sockets were there and existing. |
Docker: |
Ok, I just reproduced it. It's a genuine bug and it was a peculiarity of my setup that was masking it. /remove-priority backlog |
Hey, My kubespray is using kubeadm version v1.15.3 and crashes when executing the command: If only I could simply add the Small recap:
@rosti Am I not using the command line API the correct way ? |
this:
should work: if you want to use phases, have you tried passing a config (InitConfiguration):
see: ? |
I finally got it ! The initial kubespray command was:
So I changed the line to: Thx ! For people having similar issues: The config part that made it work on the master is the following: apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: 10.10.3.15
bindPort: 6443
certificateKey: 9063a1ccc9c5e926e02f245c06b8d9f2ff3c1eb2dafe5fbe2595ab4ab2d3eb1a
nodeRegistration:
name: p3kubemaster1
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
criSocket: /var/run/crio/crio.sock In kubespray you must update the file |
What keywords did you search in kubeadm issues before filing this one?
kubeadm-config
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
): 1.14.0uname -a
): 4.20What happened?
On a node that has
/var/run/dockershim.sock
, and/var/run/crio/crio.sock
,kubeadm join --cri-socket /var/run/crio/crio.sock
fails with an errorPassing
--cri-socket
has no effect.What you expected to happen?
Passing
--cri-socket
would resolve the conflict.How to reproduce it (as minimally and precisely as possible)?
Have two CRI runtimes running (crio.sock and dockershim.sock present)
The text was updated successfully, but these errors were encountered: