sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/infrastructure-aws/e2e_test_templates/cluster-template-ssm.yaml (about)

     1  apiVersion: cluster.x-k8s.io/v1beta1
     2  kind: Cluster
     3  metadata:
     4    labels:
     5      cni: ${CLUSTER_NAME}-crs-0
     6    name: ${CLUSTER_NAME}
     7  spec:
     8    clusterNetwork:
     9      pods:
    10        cidrBlocks:
    11        - 192.168.0.0/16
    12    controlPlaneRef:
    13      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    14      kind: KubeadmControlPlane
    15      name: ${CLUSTER_NAME}-control-plane
    16    infrastructureRef:
    17      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    18      kind: AWSCluster
    19      name: ${CLUSTER_NAME}
    20  ---
    21  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    22  kind: AWSCluster
    23  metadata:
    24    name: ${CLUSTER_NAME}
    25  spec:
    26    controlPlaneLoadBalancer:
    27      healthCheckProtocol: TCP
    28    region: ${AWS_REGION}
    29    sshKeyName: ${AWS_SSH_KEY_NAME}
    30  ---
    31  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    32  kind: KubeadmControlPlane
    33  metadata:
    34    name: ${CLUSTER_NAME}-control-plane
    35  spec:
    36    kubeadmConfigSpec:
    37      clusterConfiguration:
    38        apiServer:
    39          extraArgs:
    40            cloud-provider: aws
    41        controllerManager:
    42          extraArgs:
    43            cloud-provider: aws
    44      initConfiguration:
    45        nodeRegistration:
    46          kubeletExtraArgs:
    47            cloud-provider: aws
    48          name: '{{ ds.meta_data.local_hostname }}'
    49      joinConfiguration:
    50        nodeRegistration:
    51          kubeletExtraArgs:
    52            cloud-provider: aws
    53          name: '{{ ds.meta_data.local_hostname }}'
    54    machineTemplate:
    55      infrastructureRef:
    56        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    57        kind: AWSMachineTemplate
    58        name: ${CLUSTER_NAME}-control-plane
    59    replicas: ${CONTROL_PLANE_MACHINE_COUNT}
    60    version: ${KUBERNETES_VERSION}
    61  ---
    62  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    63  kind: AWSMachineTemplate
    64  metadata:
    65    name: ${CLUSTER_NAME}-control-plane
    66  spec:
    67    template:
    68      spec:
    69        cloudInit:
    70          secureSecretsBackend: ssm-parameter-store
    71        iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
    72        instanceType: ${AWS_CONTROL_PLANE_MACHINE_TYPE}
    73        sshKeyName: ${AWS_SSH_KEY_NAME}
    74  ---
    75  apiVersion: cluster.x-k8s.io/v1beta1
    76  kind: MachineDeployment
    77  metadata:
    78    name: ${CLUSTER_NAME}-md-0
    79  spec:
    80    clusterName: ${CLUSTER_NAME}
    81    replicas: ${WORKER_MACHINE_COUNT}
    82    selector:
    83      matchLabels: null
    84    template:
    85      spec:
    86        bootstrap:
    87          configRef:
    88            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    89            kind: KubeadmConfigTemplate
    90            name: ${CLUSTER_NAME}-md-0
    91        clusterName: ${CLUSTER_NAME}
    92        infrastructureRef:
    93          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    94          kind: AWSMachineTemplate
    95          name: ${CLUSTER_NAME}-md-0
    96        version: ${KUBERNETES_VERSION}
    97  ---
    98  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    99  kind: AWSMachineTemplate
   100  metadata:
   101    name: ${CLUSTER_NAME}-md-0
   102  spec:
   103    template:
   104      spec:
   105        cloudInit:
   106          secureSecretsBackend: ssm-parameter-store
   107        iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io
   108        instanceType: ${AWS_NODE_MACHINE_TYPE}
   109        sshKeyName: ${AWS_SSH_KEY_NAME}
   110  ---
   111  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   112  kind: KubeadmConfigTemplate
   113  metadata:
   114    name: ${CLUSTER_NAME}-md-0
   115  spec:
   116    template:
   117      spec:
   118        joinConfiguration:
   119          nodeRegistration:
   120            kubeletExtraArgs:
   121              cloud-provider: aws
   122            name: '{{ ds.meta_data.local_hostname }}'
   123  ---
   124  apiVersion: v1
   125  data: ${CNI_RESOURCES}
   126  kind: ConfigMap
   127  metadata:
   128    name: cni-${CLUSTER_NAME}-crs-0
   129  ---
   130  apiVersion: addons.cluster.x-k8s.io/v1beta1
   131  kind: ClusterResourceSet
   132  metadata:
   133    name: ${CLUSTER_NAME}-crs-0
   134  spec:
   135    clusterSelector:
   136      matchLabels:
   137        cni: ${CLUSTER_NAME}-crs-0
   138    resources:
   139    - kind: ConfigMap
   140      name: cni-${CLUSTER_NAME}-crs-0
   141    strategy: ApplyOnce