Skip to content

Commit 7ae11af

Browse files
committed
support to conveniently use containerd
Signed-off-by: yanxuean <[email protected]>
1 parent ff7ae6a commit 7ae11af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/minikube/bootstrapper/kubeadm/kubeadm.go

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ func SetContainerRuntime(cfg map[string]string, runtime string) map[string]strin
214214
cfg["container-runtime-endpoint"] = "/var/run/crio/crio.sock"
215215
cfg["image-service-endpoint"] = "/var/run/crio/crio.sock"
216216
cfg["runtime-request-timeout"] = "15m"
217+
case "containerd":
218+
cfg["container-runtime"] = "remote"
219+
cfg["container-runtime-endpoint"] = "unix:///run/containerd/containerd.sock"
220+
cfg["image-service-endpoint"] = "unix:///run/containerd/containerd.sock"
221+
cfg["runtime-request-timeout"] = "15m"
217222
default:
218223
cfg["container-runtime"] = runtime
219224
}

0 commit comments

Comments
 (0)