Configure the cluster and machines metadata¶
Adjust the
templates/cluster.yaml.template
parameters to suit your deployment:In the
spec::providerSpec::value
section, add the mandatoryExternalNetworkID
parameter that is the ID of an external OpenStack network. It is required to have public Internet access to virtual machines.In the
spec::clusterNetwork::services
section, add the corresponding values forcidrBlocks
.Configure other parameters as required.
In
templates/machines.yaml.template
, modify thespec:providerSpec:value
section for 3 control plane nodes marked with thecluster.sigs.k8s.io/control-plane
label by substituting theflavor
andimage
parameters with the corresponding values of the control plane nodes in the related OpenStack cluster. For example:spec: &cp_spec providerSpec: value: apiVersion: "openstackproviderconfig.k8s.io/v1alpha1" kind: "OpenstackMachineProviderSpec" flavor: kaas.minimal image: bionic-server-cloudimg-amd64-20190612
Note
The
flavor
parameter value provided in the example above is cloud-specific and must meet the Container Cloud requirements.Optional. Available as TechPreview. To boot cluster machines from a block storage volume, define the following parameter in the
spec:providerSpec
section oftemplates/machines.yaml.template
:bootFromVolume: enabled: true volumeSize: 120
Note
The minimal storage requirement is 120 GB per node. For details, see Requirements for an OpenStack-based cluster.
To boot the Bastion node from a volume, add the same parameter to
templates/cluster.yaml.template
in thespec:providerSpec
section for Bastion. The default amount of storage80
is enough.
Also, modify other parameters as required.