diff --git a/cmd/localkube/cmd/start.go b/cmd/localkube/cmd/start.go index 9669d9a769c9..96ec0e7b5777 100644 --- a/cmd/localkube/cmd/start.go +++ b/cmd/localkube/cmd/start.go @@ -64,13 +64,13 @@ func SetupServer(s *localkube.LocalkubeServer) { if s.ContainerRuntime == "remote" && s.RemoteRuntimeEndpoint == "" { panic("Failed to connect to --container-runtime='remote' with no --container-runtime-endpoint") } - // localkube flags can handle `--container-runtime=remote --remote-runtime-endpoint=/var/run/crio.sock --remote-image-endpoint=/var/run/crio.sock`, + // localkube flags can handle `--container-runtime=remote --remote-runtime-endpoint=/var/run/crio/crio.sock --remote-image-endpoint=/var/run/crio/crio.sock`, // but this allows for a convenience of just e.g.`--container-runtime=crio` and the same for minikube switch s.ContainerRuntime { case "crio", "cri-o": s.ContainerRuntime = "remote" - s.RemoteRuntimeEndpoint = "unix:///var/run/crio.sock" - s.RemoteImageEndpoint = "unix:///var/run/crio.sock" + s.RemoteRuntimeEndpoint = "unix:///var/run/crio/crio.sock" + s.RemoteImageEndpoint = "unix:///var/run/crio/crio.sock" } if s.ShouldGenerateCerts { diff --git a/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/var/run/crio.sock b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/var/run/crio.sock new file mode 120000 index 000000000000..2c31ff8a4576 --- /dev/null +++ b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/var/run/crio.sock @@ -0,0 +1 @@ +crio/crio.sock \ No newline at end of file diff --git a/deploy/iso/minikube-iso/package/crio-bin/crio.conf b/deploy/iso/minikube-iso/package/crio-bin/crio.conf index 6a6259334491..6588ccbf8c36 100644 --- a/deploy/iso/minikube-iso/package/crio-bin/crio.conf +++ b/deploy/iso/minikube-iso/package/crio-bin/crio.conf @@ -23,7 +23,7 @@ storage_option = [ [crio.api] # listen is the path to the AF_LOCAL socket on which crio will listen. -listen = "/var/run/crio.sock" +listen = "/var/run/crio/crio.sock" # stream_address is the IP address on which the stream server will listen stream_address = "" diff --git a/docs/alternative_runtimes.md b/docs/alternative_runtimes.md index 0517118282c8..19da5ce4bdaf 100644 --- a/docs/alternative_runtimes.md +++ b/docs/alternative_runtimes.md @@ -26,7 +26,7 @@ Or you can use the extended version: $ minikube start \ --network-plugin=cni \ --extra-config=kubelet.container-runtime=remote \ - --extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock \ - --extra-config=kubelet.image-service-endpoint=/var/run/crio.sock \ + --extra-config=kubelet.container-runtime-endpoint=/var/run/crio/crio.sock \ + --extra-config=kubelet.image-service-endpoint=/var/run/crio/crio.sock \ --bootstrapper=kubeadm ``` diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go index bee53770cebb..94dcd34c8d28 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go @@ -198,8 +198,8 @@ func SetContainerRuntime(cfg map[string]string, runtime string) map[string]strin switch runtime { case "crio", "cri-o": cfg["container-runtime"] = "remote" - cfg["container-runtime-endpoint"] = "/var/run/crio.sock" - cfg["image-service-endpoint"] = "/var/run/crio.sock" + cfg["container-runtime-endpoint"] = "/var/run/crio/crio.sock" + cfg["image-service-endpoint"] = "/var/run/crio/crio.sock" cfg["runtime-request-timeout"] = "15m" default: cfg["container-runtime"] = runtime