Merge pull request #6444 from cybozu-go/ci-clarify-the-supported-vm-driver-of-minikube
ci: clarify the supported vm-driver of minikube scripts
This commit is contained in:
2 files changed
+4
-6
No files matched your search
+4
-2
@@ -24,10 +24,12 @@ to your command line tool of choice.
|
||||
### Install Kubernetes
|
||||
You can choose any Kubernetes flavor of your choice. The test framework only depends on kubectl being configured.
|
||||
The framework also provides scripts to install Kubernetes. There are two scripts to start the cluster:
|
||||
1. **Minikube** (recommended for MacOS): Run [minikube.sh](/tests/scripts/minikube.sh) to setup a single-node Minikube Kubernetes.
|
||||
1. **Kubeadm** (recommended for Ubuntu): run [kubeadm.sh](/tests/scripts/kubeadm.sh) to setup a single-node K8s cluster using kubeadm
|
||||
1. **Minikube** (recommended for non-Ubuntu): Run [minikube.sh](/tests/scripts/minikube.sh) to setup a single-node Minikube Kubernetes.
|
||||
|
||||
#### Minikube (recommended for MacOS)
|
||||
Minikube scripts only support "docker" and "none" as vm-driver.
|
||||
|
||||
#### Minikube (recommended for non-Ubuntu)
|
||||
Starting the cluster on Minikube is as simple as running:
|
||||
```console
|
||||
tests/scripts/minikube.sh up
|
||||
|
||||
@@ -129,9 +129,6 @@ function dind::create-volume {
|
||||
# This includes virtlet, for instance. Also this may be
|
||||
# useful in future if we want DIND nodes to pass
|
||||
# preflight checks.
|
||||
# Unfortunately we can't do this when using Mac Docker
|
||||
# (unless a remote docker daemon on Linux is used)
|
||||
# NB: there's no /boot on recent Mac dockers
|
||||
function dind::prepare-sys-mounts {
|
||||
if [[ ! ${is_moby_linux} ]]; then
|
||||
sys_volume_args=()
|
||||
@@ -146,7 +143,6 @@ function dind::prepare-sys-mounts {
|
||||
if ! dind::volume-exists kubeadm-dind-sys; then
|
||||
dind::step "Saving a copy of docker host's /lib/modules"
|
||||
dind::create-volume kubeadm-dind-sys
|
||||
# Use a dirty nsenter trick to fool Docker on Mac and grab system
|
||||
# /lib/modules into sys.tar file on kubeadm-dind-sys volume.
|
||||
local nsenter="nsenter --mount=/proc/1/ns/mnt --"
|
||||
docker run \
|
||||
|
||||
Reference in new issue
Block a user