cluster-api-openstack
Install Cluster API Provider OpenStack manifests to generate a fully working Kubernetes cluster
About this chart
Cluster API Helm Chart for Provider OpenStack
A Helm chart to install Cluster API manifests for creating a workload cluster on OpenStack.
Installing the Chart
Before installing the chart, checkout out Cluster API Quick Start to initialize the management cluster. And create a secret 'OS_CLOUD_NAME-cloud-config' in current K8S cluster from an OpenStack clouds.yaml file using following command. OS_CLOUD_NAME should be same with '.Values.openstack.cloud.name'.
$ scripts/create_cloud-config_secret.sh ~/clouds.yaml <OS_CLOUD_NAME> <NAMESPACE>
Example
$ cat ~/clouds.yaml
clouds:
capi:
identity_api_version: 3
auth:
auth_url: http://keystone.openstack.svc.cluster.local:80/v3
project_domain_name: default
user_domain_name: default
project_name: capi
username: capi
password: password
region_name: RegionOne
$ scripts/create_cloud-config_secret.sh ~/clouds.yaml capi default
$ kubectl get secret capi-cloud-config
NAME TYPE DATA AGE
capi-cloud-config Opaque 2 38s
And then you can either helm cli or argoCD to install the chart.
Configuration
Check the contents of values.yaml. Also refer to the Provider OpenStack document
This chart is inspired by Katie Gamanji's Cluster API Helm Chart
Deploy cluster-api-openstack with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-api-openstack on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcluster-api-openstack is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply