MiniCluster
This module aims to deploy a Kubernetes cluster by using minikube
Requirements
Since we will be deploying ArgoCD & Airflow in the local k8s cluster, we should provide at least 8GB & 4 CPUs.
minikube drivers
This platform uses the docker driver with the ingress-nginx add-on (the qemu2/vfkit VM
drivers are blocked by the corporate firewall on the target host). On the docker driver the
node IP is not host-routable on macOS, so host access to *.data ingress hosts needs
sudo minikube tunnel -p data + an /etc/hosts entry pointing them at 127.0.0.1.
Requirements
| Name | Version |
|---|---|
| terraform | >= 1.7.4 |
| minikube | ~> 0.6.0 |
Providers
| Name | Version |
|---|---|
| minikube | ~> 0.6.0 |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| minikube_cluster.cluster | resource |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cpus | Amount of CPUs to allocate to Kubernetes | number |
4 |
no |
| driver | Minikube driver | string |
n/a | yes |
| memory | Amount of RAM to allocate to Kubernetes | string |
"8g" |
no |
| name | Cluster name | string |
n/a | yes |
| network | Network to run minikube with | string |
null |
no |
Outputs
| Name | Description |
|---|---|
| client_certificate | Client certificate used in cluster |
| client_key | Client key for cluster |
| cluster_ca_certificate | Certificate authority for cluster |
| host | The host name for the cluster |