This repository includes scripts to set up a Metal³ development environment.
Instructions can be found here: https://metal3.io/try-it.html
Versions v1alpha3 or v1alpha4 are later referred as v1alphaX.
The v1alphaX deployment can be done with Ubuntu 18.04 or Centos 8 target host images.
The requirements for the dev env machine are, when deploying Ubuntu target hosts:
- 16GB of memory
- 4 cpus
And when deploying Centos target hosts:
- 32GB of memory
- 4 cpus
The Minikube machine is deployed with 4GB of RAM, and 2 vCPUs, and the target hosts with 4 vCPUs and either 4GB of RAM (Ubuntu) or 8GB of RAM (Centos).
Select:
export CAPI_VERSION=v1alpha3
or
export CAPI_VERSION=v1alpha4
The following environment variables need to be set for Centos:
export IMAGE_OS=Centos
export DEFAULT_HOSTS_MEMORY=8192
And the following environment variables need to be set for Ubuntu:
export IMAGE_OS=Ubuntu
export DEFAULT_HOSTS_MEMORY=4096
./01_prepare_host.sh
./02_configure_host.sh
./03_launch_mgmt_cluster.sh
./scripts/v1alphaX/provision_cluster.sh
./scripts/v1alphaX/provision_controlplane.sh
./scripts/v1alphaX/provision_worker.sh
kubectl delete cluster "${CLUSTER_NAME:-"test1"}" -n metal3