This page describes how to create a new Kubernetes cluster via OpenStack Magnum by using Terraform or OpenTofu.
The following pre-requisites must be satisfied.
There is a set of mandatory inputs required to create a new cluster which are:
The available selectable options could also be checked using the Opnstack CLI commands :
Write configuration filesCreate a directory for your configuration and change directory into it:
Create the main configuration file to define the infrastructure:
Open the
Replace the following fields as desired:
For instance for ECMWF can be :
Run Terraform or OpenTofu to create a Kubernetes cluster via OpenStack MagnumInitialize the directory :
Review the required changes:
Apply the changes to create the Kubernetes cluster :
Status can be then seen via:
Destroy the ClusterThe created cluster can be then destroyed by simply running:
|