This is a cache of https://docs.okd.io/4.14/machine_management/cluster_api_machine_management/cluster-api-configuration.html. It is a snapshot of the page at 2024-11-23T22:49:01.953+0000.
Cluster <strong>api</strong> configuration - Managing machines with the Cluster <strong>api</strong> | Machine management | OKD 4.14
×

Managing machines with the Cluster api is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

The following example YAML files show how to make the Cluster api primary resources work together and configure settings for the machines that they create that are appropriate for your environment.

Sample YAML for a Cluster api cluster resource

The cluster resource defines the name and infrastructure provider for the cluster and is managed by the Cluster api. This resource has the same structure for all providers.

apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: <cluster_name> (1)
  namespace: openshift-cluster-api
spec:
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    kind: <infrastructure_kind> (2)
    name: <cluster_name>
    namespace: openshift-cluster-api
1 Specify the name of the cluster.
2 Specify the infrastructure kind for the cluster. Valid values are:
  • AWSCluster: The cluster is running on Amazon Web Services (AWS).

  • GCPCluster: The cluster is running on Google Cloud Platform (GCP).

Provider-specific configuration options

The remaining Cluster api resources are provider-specific. For provider-specific configuration options for your cluster, see the following resources: