sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/test/ci/prow-clusterclass-ci-default/windows.yaml (about)

     1  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
     2  kind: AzureMachineTemplate
     3  metadata:
     4    name: ${CLUSTER_NAME}-worker
     5  spec:
     6    template:
     7      spec:
     8        osDisk:
     9          diskSizeGB: 128
    10          osType: Linux
    11        sshPublicKey: ""
    12        vmSize: replace_me
    13  ---
    14  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    15  kind: KubeadmConfigTemplate
    16  metadata:
    17    name: ${CLUSTER_NAME}-worker-win
    18  spec:
    19    template:
    20      spec:
    21        preKubeadmCommands: []
    22        postKubeadmCommands:
    23          - nssm set kubelet start SERVICE_AUTO_START
    24          - powershell C:/defender-exclude-calico.ps1
    25        joinConfiguration:
    26          nodeRegistration:
    27            name: '{{ ds.meta_data["local_hostname"] }}'
    28            criSocket: npipe:////./pipe/containerd-containerd
    29            kubeletExtraArgs:
    30              cloud-provider: external
    31              v: "2"
    32              windows-priorityclass: "ABOVE_NORMAL_PRIORITY_CLASS"
    33        files:
    34          - contentFrom:
    35              secret:
    36                key: worker-node-azure.json
    37                name: replace_me
    38            owner: root:root
    39            path: c:/k/azure.json
    40            permissions: "0644"
    41          - path: C:/defender-exclude-calico.ps1
    42            permissions: "0744"
    43            content: |-
    44              Add-MpPreference -ExclusionProcess C:/opt/cni/bin/calico.exe
    45              Add-MpPreference -ExclusionProcess C:/opt/cni/bin/calico-ipam.exe
    46  ---
    47  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    48  kind: AzureMachineTemplate
    49  metadata:
    50    name:  ${CLUSTER_NAME}-worker-win
    51    annotations:
    52      runtime: containerd
    53  spec:
    54    template:
    55      spec:
    56        osDisk:
    57          osType: "Windows"
    58          diskSizeGB: 128
    59          managedDisk:
    60            storageAccountType: "Premium_LRS"
    61        sshPublicKey: ""
    62        vmSize: replace_me