sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/infrastructure-aws/kustomize_sources/upgrades/machine-pool.yaml (about)

     1  ---
     2  apiVersion: cluster.x-k8s.io/v1beta1
     3  kind: MachinePool
     4  metadata:
     5    name: ${CLUSTER_NAME}-mp-0
     6  spec:
     7    clusterName: ${CLUSTER_NAME}
     8    replicas: ${WORKER_MACHINE_COUNT}
     9    template:
    10      spec:
    11        bootstrap:
    12          configRef:
    13            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    14            kind: KubeadmConfig
    15            name: ${CLUSTER_NAME}-mp-0
    16        clusterName: ${CLUSTER_NAME}
    17        infrastructureRef:
    18          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    19          kind: AWSMachinePool
    20          name: ${CLUSTER_NAME}-mp-0
    21        version: ${KUBERNETES_VERSION}
    22  ---
    23  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    24  kind: AWSMachinePool
    25  metadata:
    26    name: ${CLUSTER_NAME}-mp-0
    27  spec:
    28    minSize: 1
    29    maxSize: 4
    30    awsLaunchTemplate:
    31      instanceType: "${AWS_CONTROL_PLANE_MACHINE_TYPE}"
    32      iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io"
    33      sshKeyName: "${AWS_SSH_KEY_NAME}"
    34  ---
    35  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    36  kind: KubeadmConfig
    37  metadata:
    38    name: ${CLUSTER_NAME}-mp-0
    39  spec:
    40    joinConfiguration:
    41      nodeRegistration:
    42        name: '{{ ds.meta_data.local_hostname }}'
    43        kubeletExtraArgs:
    44          cloud-provider: aws