Revamp rkt and add CRI-O as alternative runtime (#6371)

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana
2017-12-11 22:04:49 +01:00
committed by Zach Corleissen
parent 5f9e5192d8
commit 17687df676
+28 -5
View File
@@ -18,7 +18,7 @@ Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a
* NodePorts * NodePorts
* ConfigMaps and Secrets * ConfigMaps and Secrets
* Dashboards * Dashboards
* Container Runtime: Docker, and [rkt](https://github.com/coreos/rkt) * Container Runtime: Docker, [rkt](https://github.com/rkt/rkt) and [CRI-O](https://github.com/kubernetes-incubator/cri-o)
* Enabling CNI (Container Network Interface) * Enabling CNI (Container Network Interface)
* Ingress * Ingress
@@ -75,15 +75,38 @@ Stopping local Kubernetes cluster...
Stopping "minikube"... Stopping "minikube"...
``` ```
### Using rkt container engine ### Alternative Container Runtimes
To use [rkt](https://github.com/coreos/rkt) as the container runtime run: #### CRI-O
To use [CRI-O](https://github.com/kubernetes-incubator/cri-o) as the container runtime, run:
```bash
$ minikube start \
--network-plugin=cni \
--container-runtime=cri-o \
--bootstrapper=kubeadm
```
Or you can use the extended version:
```bash
$ minikube start \
--network-plugin=cni \
--extra-config=kubelet.container-runtime=remote \
--extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock \
--extra-config=image-service-endpoint=/var/run/crio.sock \
--bootstrapper=kubeadm
```
#### rkt container engine
To use [rkt](https://github.com/rkt/rkt) as the container runtime run:
```shell ```shell
$ minikube start \ $ minikube start \
--network-plugin=cni \ --network-plugin=cni \
--container-runtime=rkt \ --container-runtime=rkt
--iso-url=https://github.com/coreos/minikube-iso/releases/download/v0.0.5/minikube-v0.0.5.iso
``` ```
This will use an alternative minikube ISO image containing both rkt, and Docker, and enable CNI networking. This will use an alternative minikube ISO image containing both rkt, and Docker, and enable CNI networking.