sigs.k8s.io/cluster-api-provider-aws@v1.5.5/templates/cluster-template-eks.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: MachineDeployment
    30  metadata:
    31    name: "${CLUSTER_NAME}-md-0"
    32  spec:
    33    clusterName: "${CLUSTER_NAME}"
    34    replicas: ${WORKER_MACHINE_COUNT}
    35    selector:
    36      matchLabels:
    37    template:
    38      spec:
    39        clusterName: "${CLUSTER_NAME}"
    40        version: "${KUBERNETES_VERSION}"
    41        bootstrap:
    42          configRef:
    43            name: "${CLUSTER_NAME}-md-0"
    44            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    45            kind: EKSConfigTemplate
    46        infrastructureRef:
    47          name: "${CLUSTER_NAME}-md-0"
    48          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    49          kind: AWSMachineTemplate
    50  ---
    51  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    52  kind: AWSMachineTemplate
    53  metadata:
    54    name: "${CLUSTER_NAME}-md-0"
    55  spec:
    56    template:
    57      spec:
    58        instanceType: "${AWS_NODE_MACHINE_TYPE}"
    59        iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io"
    60        sshKeyName: "${AWS_SSH_KEY_NAME}"
    61  ---
    62  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    63  kind: EKSConfigTemplate
    64  metadata:
    65    name: "${CLUSTER_NAME}-md-0"
    66  spec:
    67    template: {}