sigs.k8s.io/cluster-api-provider-aws@v1.5.5/templates/cluster-template-eks-managedmachinepool.yaml (about)

     1  ---
     2  apiVersion: cluster.x-k8s.io/v1beta1
     3  kind: Cluster
     4  metadata:
     5    name: "${CLUSTER_NAME}"
     6  spec:
     7    clusterNetwork:
     8      pods:
     9        cidrBlocks: ["192.168.0.0/16"]
    10    infrastructureRef:
    11      kind: AWSManagedControlPlane
    12      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    13      name: "${CLUSTER_NAME}-control-plane"
    14    controlPlaneRef:
    15      kind: AWSManagedControlPlane
    16      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    17      name: "${CLUSTER_NAME}-control-plane"
    18  ---
    19  kind: AWSManagedControlPlane
    20  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    21  metadata:
    22    name: "${CLUSTER_NAME}-control-plane"
    23  spec:
    24    region: "${AWS_REGION}"
    25    sshKeyName: "${AWS_SSH_KEY_NAME}"
    26    version: "${KUBERNETES_VERSION}"
    27  ---
    28  apiVersion: cluster.x-k8s.io/v1beta1
    29  kind: MachinePool
    30  metadata:
    31    name: "${CLUSTER_NAME}-pool-0"
    32  spec:
    33    clusterName: "${CLUSTER_NAME}"
    34    replicas: ${WORKER_MACHINE_COUNT}
    35    template:
    36      spec:
    37        clusterName: "${CLUSTER_NAME}"
    38        bootstrap:
    39          dataSecretName: ""
    40        infrastructureRef:
    41          name: "${CLUSTER_NAME}-pool-0"
    42          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    43          kind: AWSManagedMachinePool
    44  ---
    45  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    46  kind: AWSManagedMachinePool
    47  metadata:
    48    name: "${CLUSTER_NAME}-pool-0"
    49  spec: {}