sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/infrastructure-aws/kustomize_sources/base/cluster-template.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      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    12      kind: AWSCluster
    13      name: "${CLUSTER_NAME}"
    14    controlPlaneRef:
    15      kind: KubeadmControlPlane
    16      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    17      name: "${CLUSTER_NAME}-control-plane"
    18  ---
    19  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    20  kind: AWSCluster
    21  metadata:
    22    name: "${CLUSTER_NAME}"
    23  spec:
    24    region: "${AWS_REGION}"
    25    sshKeyName: "${AWS_SSH_KEY_NAME}"
    26  ---
    27  kind: KubeadmControlPlane
    28  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    29  metadata:
    30    name: "${CLUSTER_NAME}-control-plane"
    31  spec:
    32    replicas: ${CONTROL_PLANE_MACHINE_COUNT}
    33    machineTemplate:
    34      infrastructureRef:
    35        kind: AWSMachineTemplate
    36        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    37        name: "${CLUSTER_NAME}-control-plane"
    38    kubeadmConfigSpec:
    39      initConfiguration:
    40        nodeRegistration:
    41          name: '{{ ds.meta_data.local_hostname }}'
    42          kubeletExtraArgs:
    43            cloud-provider: aws
    44      clusterConfiguration:
    45        apiServer:
    46          extraArgs:
    47            cloud-provider: aws
    48        controllerManager:
    49          extraArgs:
    50            cloud-provider: aws
    51      joinConfiguration:
    52        nodeRegistration:
    53          name: '{{ ds.meta_data.local_hostname }}'
    54          kubeletExtraArgs:
    55            cloud-provider: aws
    56    version: "${KUBERNETES_VERSION}"
    57  ---
    58  kind: AWSMachineTemplate
    59  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    60  metadata:
    61    name: "${CLUSTER_NAME}-control-plane"
    62  spec:
    63    template:
    64      spec:
    65        instanceType: "${AWS_CONTROL_PLANE_MACHINE_TYPE}"
    66        iamInstanceProfile: "control-plane.cluster-api-provider-aws.sigs.k8s.io"
    67        sshKeyName: "${AWS_SSH_KEY_NAME}"