sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/flavors/aks-aso/cluster-template.yaml (about)

     1  ---
     2  apiVersion: cluster.x-k8s.io/v1beta1
     3  kind: Cluster
     4  metadata:
     5    name: ${CLUSTER_NAME}
     6    namespace: default
     7  spec:
     8    controlPlaneRef:
     9      apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    10      kind: AzureASOManagedControlPlane
    11      name: ${CLUSTER_NAME}
    12    infrastructureRef:
    13      apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    14      kind: AzureASOManagedCluster
    15      name: ${CLUSTER_NAME}
    16  ---
    17  apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    18  kind: AzureASOManagedControlPlane
    19  metadata:
    20    name: ${CLUSTER_NAME}
    21  spec:
    22    version: ${KUBERNETES_VERSION}
    23    resources:
    24    - apiVersion: containerservice.azure.com/v1api20231001
    25      kind: ManagedCluster
    26      metadata:
    27        name: ${CLUSTER_NAME}
    28        annotations:
    29          serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME}
    30      spec:
    31        owner:
    32          name: ${CLUSTER_NAME}
    33        dnsPrefix: ${CLUSTER_NAME}
    34        location: ${AZURE_LOCATION}
    35        identity:
    36          type: SystemAssigned
    37        servicePrincipalProfile:
    38          clientId: msi
    39        networkProfile:
    40          networkPlugin: azure
    41  ---
    42  apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    43  kind: AzureASOManagedCluster
    44  metadata:
    45    name: ${CLUSTER_NAME}
    46  spec:
    47    resources:
    48    - apiVersion: resources.azure.com/v1api20200601
    49      kind: ResourceGroup
    50      metadata:
    51        name: ${CLUSTER_NAME}
    52        annotations:
    53          serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME}
    54      spec:
    55        location: ${AZURE_LOCATION}
    56  ---
    57  apiVersion: cluster.x-k8s.io/v1beta1
    58  kind: MachinePool
    59  metadata:
    60    name: "${CLUSTER_NAME}-pool0"
    61  spec:
    62    clusterName: "${CLUSTER_NAME}"
    63    replicas: ${WORKER_MACHINE_COUNT:=2}
    64    template:
    65      metadata: {}
    66      spec:
    67        bootstrap:
    68          dataSecretName: ""
    69        clusterName: "${CLUSTER_NAME}"
    70        infrastructureRef:
    71          apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    72          kind: AzureASOManagedMachinePool
    73          name: "${CLUSTER_NAME}-pool0"
    74        version: "${KUBERNETES_VERSION}"
    75  ---
    76  apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    77  kind: AzureASOManagedMachinePool
    78  metadata:
    79    name: "${CLUSTER_NAME}-pool0"
    80  spec:
    81    resources:
    82    - apiVersion: "containerservice.azure.com/v1api20231001"
    83      kind: ManagedClustersAgentPool
    84      metadata:
    85        name: ${CLUSTER_NAME}-pool0
    86        annotations:
    87          serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME}
    88      spec:
    89        azureName: pool0
    90        owner:
    91          name: ${CLUSTER_NAME}
    92        mode: System
    93        type: VirtualMachineScaleSets
    94        vmSize: ${AZURE_NODE_MACHINE_TYPE}
    95  ---
    96  apiVersion: cluster.x-k8s.io/v1beta1
    97  kind: MachinePool
    98  metadata:
    99    name: "${CLUSTER_NAME}-pool1"
   100  spec:
   101    clusterName: "${CLUSTER_NAME}"
   102    replicas: ${WORKER_MACHINE_COUNT:=2}
   103    template:
   104      metadata: {}
   105      spec:
   106        bootstrap:
   107          dataSecretName: ""
   108        clusterName: "${CLUSTER_NAME}"
   109        infrastructureRef:
   110          apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
   111          kind: AzureASOManagedMachinePool
   112          name: "${CLUSTER_NAME}-pool1"
   113        version: "${KUBERNETES_VERSION}"
   114  ---
   115  apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
   116  kind: AzureASOManagedMachinePool
   117  metadata:
   118    name: "${CLUSTER_NAME}-pool1"
   119  spec:
   120    resources:
   121    - apiVersion: "containerservice.azure.com/v1api20231001"
   122      kind: ManagedClustersAgentPool
   123      metadata:
   124        name: ${CLUSTER_NAME}-pool1
   125        annotations:
   126          serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME}
   127      spec:
   128        azureName: pool1
   129        owner:
   130          name: ${CLUSTER_NAME}
   131        mode: User
   132        type: VirtualMachineScaleSets
   133        vmSize: ${AZURE_NODE_MACHINE_TYPE}