Skip to content

Commit 8b24af1

Browse files
authored
Fix cmd args for alternative runtimes
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 with an alternative container runtime. This commit
1 parent 7b15bdd commit 8b24af1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: content/en/docs/setup/minikube.md

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ To use [containerd](https://github.com/containerd/containerd) as the container r
115115
```bash
116116
$ minikube start \
117117
--network-plugin=cni \
118+
--enable-default-cni \
118119
--container-runtime=containerd \
119120
--bootstrapper=kubeadm
120121
```
@@ -124,6 +125,7 @@ Or you can use the extended version:
124125
```bash
125126
$ minikube start \
126127
--network-plugin=cni \
128+
--enable-default-cni \
127129
--extra-config=kubelet.container-runtime=remote \
128130
--extra-config=kubelet.container-runtime-endpoint=unix:///run/containerd/containerd.sock \
129131
--extra-config=kubelet.image-service-endpoint=unix:///run/containerd/containerd.sock \
@@ -137,6 +139,7 @@ To use [CRI-O](https://github.com/kubernetes-incubator/cri-o) as the container r
137139
```bash
138140
$ minikube start \
139141
--network-plugin=cni \
142+
--enable-default-cni \
140143
--container-runtime=cri-o \
141144
--bootstrapper=kubeadm
142145
```
@@ -146,6 +149,7 @@ Or you can use the extended version:
146149
```bash
147150
$ minikube start \
148151
--network-plugin=cni \
152+
--enable-default-cni \
149153
--extra-config=kubelet.container-runtime=remote \
150154
--extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock \
151155
--extra-config=kubelet.image-service-endpoint=/var/run/crio.sock \
@@ -159,6 +163,7 @@ To use [rkt](https://github.com/rkt/rkt) as the container runtime run:
159163
```shell
160164
$ minikube start \
161165
--network-plugin=cni \
166+
--enable-default-cni \
162167
--container-runtime=rkt
163168
```
164169

0 commit comments

Comments
 (0)