Skip to content

Commit 7dcdbc1

Browse files
committed
Change the cri-o socket location to upstream default
Right now the cri-o socket is placed in `/var/run/crio.sock`, this commit changes it to `/var/run/crio/crio.sock` which is similar to upstream. Signed-off-by: Suraj Deshmukh <[email protected]>
1 parent a3e25a8 commit 7dcdbc1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

cmd/localkube/cmd/start.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ func SetupServer(s *localkube.LocalkubeServer) {
6464
if s.ContainerRuntime == "remote" && s.RemoteRuntimeEndpoint == "" {
6565
panic("Failed to connect to --container-runtime='remote' with no --container-runtime-endpoint")
6666
}
67-
// localkube flags can handle `--container-runtime=remote --remote-runtime-endpoint=/var/run/crio.sock --remote-image-endpoint=/var/run/crio.sock`,
67+
// localkube flags can handle `--container-runtime=remote --remote-runtime-endpoint=/var/run/crio/crio.sock --remote-image-endpoint=/var/run/crio/crio.sock`,
6868
// but this allows for a convenience of just e.g.`--container-runtime=crio` and the same for minikube
6969
switch s.ContainerRuntime {
7070
case "crio", "cri-o":
7171
s.ContainerRuntime = "remote"
72-
s.RemoteRuntimeEndpoint = "unix:///var/run/crio.sock"
73-
s.RemoteImageEndpoint = "unix:///var/run/crio.sock"
72+
s.RemoteRuntimeEndpoint = "unix:///var/run/crio/crio.sock"
73+
s.RemoteImageEndpoint = "unix:///var/run/crio/crio.sock"
7474
}
7575

7676
if s.ShouldGenerateCerts {

deploy/iso/minikube-iso/package/crio-bin/crio.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ storage_option = [
2323
[crio.api]
2424

2525
# listen is the path to the AF_LOCAL socket on which crio will listen.
26-
listen = "/var/run/crio.sock"
26+
listen = "/var/run/crio/crio.sock"
2727

2828
# stream_address is the IP address on which the stream server will listen
2929
stream_address = ""

docs/alternative_runtimes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Or you can use the extended version:
2626
$ minikube start \
2727
--network-plugin=cni \
2828
--extra-config=kubelet.container-runtime=remote \
29-
--extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock \
30-
--extra-config=kubelet.image-service-endpoint=/var/run/crio.sock \
29+
--extra-config=kubelet.container-runtime-endpoint=/var/run/crio/crio.sock \
30+
--extra-config=kubelet.image-service-endpoint=/var/run/crio/crio.sock \
3131
--bootstrapper=kubeadm
3232
```

pkg/minikube/bootstrapper/kubeadm/kubeadm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ func SetContainerRuntime(cfg map[string]string, runtime string) map[string]strin
198198
switch runtime {
199199
case "crio", "cri-o":
200200
cfg["container-runtime"] = "remote"
201-
cfg["container-runtime-endpoint"] = "/var/run/crio.sock"
202-
cfg["image-service-endpoint"] = "/var/run/crio.sock"
201+
cfg["container-runtime-endpoint"] = "/var/run/crio/crio.sock"
202+
cfg["image-service-endpoint"] = "/var/run/crio/crio.sock"
203203
cfg["runtime-request-timeout"] = "15m"
204204
default:
205205
cfg["container-runtime"] = runtime

0 commit comments

Comments
 (0)