-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
crictl within VM fails with "connection is unavailable" due to missing /etc/crictl.yaml #3043
Comments
Related to #3024 ($CONTAINER_RUNTIME_ENDPOINT) |
Confirmed. When this is used: minikube start \
--network-plugin=cni \
--container-runtime=cri-o \
--bootstrapper=kubeadm --vm-driver=kvm2 crictl version fails within "minikube ssh": FATA[0000] getting the runtime version failed: rpc error: code = Unavailable desc = grpc: the connection is unavailable This fixes it: cat > /etc/crictl.yaml
runtime-endpoint: unix:///var/run/crio/crio.sock
image-endpoint: unix:///var/run/crio/crio.sock |
Sadly this needs to be set up by the provisioner, which I am not even sure knows the container-runtime... https://github.com/kubernetes/minikube/blob/master/pkg/provision/buildroot.go#L188 |
No, the provisioner indeed only knows about Docker - and only the subset config hardcoded by machine. This means that setting up registries and setting up the crictl configuration needs to be in bootstrapper. Which is probably wrong, since crictl doesn't have anything to do with kubeadm (it's a requirement). But we can't install it with crictl, since we don't know which of the three endpoints will ultimately be used. |
@tstromberg : should be fixed now... Note that you will still get the error above, unless you remember to run: sudo crictl version _ _
_ _ ( ) ( )
___ ___ (_) ___ (_)| |/') _ _ | |_ __
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____)
$ crictl version
FATA[0000] getting the runtime version failed: rpc error: code = Unavailable desc = grpc: the connection is unavailable
$ sudo crictl version
Version: 0.1.0
RuntimeName: cri-o
RuntimeVersion: 1.10.0
RuntimeApiVersion: v1alpha1
$ At least it doesn't segfault anymore, when running |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
** Details**
When configuring CRI-O as the container runtime, we should configure crictl to use it by default.
Otherwise using
crictl
will give an error, or maybe some ugly looking deprecation warning etc.The text was updated successfully, but these errors were encountered: