Permalink
Browse files

minikube: Fix cmd args for alternative runtimes (#12365)

Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube.
  • Loading branch information...
brb authored and k8s-ci-robot committed Jan 31, 2019
1 parent 33d851c commit 9da045a9344c460cbcf9b62fff782201b4b9f4f7
Showing with 5 additions and 0 deletions.
  1. +5 −0 content/en/docs/setup/minikube.md
@@ -116,6 +116,7 @@ To use [containerd](https://github.com/containerd/containerd) as the container r
```bash
$ minikube start \
--network-plugin=cni \
--enable-default-cni \
--container-runtime=containerd \
--bootstrapper=kubeadm
```
@@ -125,6 +126,7 @@ Or you can use the extended version:
```bash
$ minikube start \
--network-plugin=cni \
--enable-default-cni \
--extra-config=kubelet.container-runtime=remote \
--extra-config=kubelet.container-runtime-endpoint=unix:///run/containerd/containerd.sock \
--extra-config=kubelet.image-service-endpoint=unix:///run/containerd/containerd.sock \
@@ -138,6 +140,7 @@ To use [CRI-O](https://github.com/kubernetes-incubator/cri-o) as the container r
```bash
$ minikube start \
--network-plugin=cni \
--enable-default-cni \
--container-runtime=cri-o \
--bootstrapper=kubeadm
```
@@ -147,6 +150,7 @@ Or you can use the extended version:
```bash
$ minikube start \
--network-plugin=cni \
--enable-default-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 \
@@ -160,6 +164,7 @@ To use [rkt](https://github.com/rkt/rkt) as the container runtime run:
```shell
$ minikube start \
--network-plugin=cni \
--enable-default-cni \
--container-runtime=rkt
```

0 comments on commit 9da045a

Please sign in to comment.