sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/data/infrastructure-azure/v1beta1/bases/md.yaml (about)

     1  ---
     2  # AzureMachineTemplate referenced by the MachineDeployment
     3  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
     4  kind: AzureMachineTemplate
     5  metadata:
     6    name: ${CLUSTER_NAME}-md-0
     7    namespace: default
     8  spec:
     9    template:
    10      spec:
    11        osDisk:
    12          diskSizeGB: 128
    13          managedDisk:
    14            storageAccountType: Premium_LRS
    15          osType: Linux
    16        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
    17        vmSize: ${AZURE_NODE_MACHINE_TYPE}
    18  ---
    19  # KubeadmConfigTemplate referenced by the MachineDeployment
    20  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    21  kind: KubeadmConfigTemplate
    22  metadata:
    23    name: ${CLUSTER_NAME}-md-0
    24    namespace: default
    25  spec:
    26    template:
    27      spec:
    28        files:
    29          - contentFrom:
    30              secret:
    31                key: worker-node-azure.json
    32                name: ${CLUSTER_NAME}-md-0-azure-json
    33            owner: root:root
    34            path: /etc/kubernetes/azure.json
    35            permissions: "0644"
    36        joinConfiguration:
    37          nodeRegistration:
    38            kubeletExtraArgs:
    39              cloud-provider: external
    40            name: '{{ ds.meta_data["local_hostname"] }}'
    41  ---
    42  # MachineDeployment object
    43  apiVersion: cluster.x-k8s.io/v1beta1
    44  kind: MachineDeployment
    45  metadata:
    46    name: ${CLUSTER_NAME}-md-0
    47    namespace: default
    48  spec:
    49    clusterName: ${CLUSTER_NAME}
    50    replicas: ${WORKER_MACHINE_COUNT}
    51    selector:
    52      matchLabels: null
    53    template:
    54      spec:
    55        bootstrap:
    56          configRef:
    57            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    58            kind: KubeadmConfigTemplate
    59            name: ${CLUSTER_NAME}-md-0
    60        clusterName: ${CLUSTER_NAME}
    61        infrastructureRef:
    62          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    63          kind: AzureMachineTemplate
    64          name: ${CLUSTER_NAME}-md-0
    65        version: ${KUBERNETES_VERSION}