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

     1  apiVersion: cluster.x-k8s.io/v1beta1
     2  kind: Cluster
     3  metadata:
     4    name: ${CLUSTER_NAME}
     5    namespace: default
     6  spec:
     7    clusterNetwork:
     8      services:
     9        cidrBlocks:
    10        - 192.168.0.0/16
    11    controlPlaneRef:
    12      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    13      kind: AzureManagedControlPlane
    14      name: ${CLUSTER_NAME}
    15    infrastructureRef:
    16      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    17      kind: AzureManagedCluster
    18      name: ${CLUSTER_NAME}
    19  ---
    20  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    21  kind: AzureManagedControlPlane
    22  metadata:
    23    name: ${CLUSTER_NAME}
    24    namespace: default
    25  spec:
    26    identityRef:
    27      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    28      kind: AzureClusterIdentity
    29      name: ${CLUSTER_IDENTITY_NAME}
    30    location: ${AZURE_LOCATION}
    31    oidcIssuerProfile:
    32      enabled: true
    33    resourceGroupName: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}}
    34    sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
    35    subscriptionID: ${AZURE_SUBSCRIPTION_ID}
    36    version: ${KUBERNETES_VERSION}
    37  ---
    38  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    39  kind: AzureManagedCluster
    40  metadata:
    41    name: ${CLUSTER_NAME}
    42    namespace: default
    43  ---
    44  apiVersion: cluster.x-k8s.io/v1beta1
    45  kind: MachinePool
    46  metadata:
    47    name: ${CLUSTER_NAME}-pool0
    48    namespace: default
    49  spec:
    50    clusterName: ${CLUSTER_NAME}
    51    replicas: ${WORKER_MACHINE_COUNT:=2}
    52    template:
    53      metadata: {}
    54      spec:
    55        bootstrap:
    56          dataSecretName: ""
    57        clusterName: ${CLUSTER_NAME}
    58        infrastructureRef:
    59          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    60          kind: AzureManagedMachinePool
    61          name: ${CLUSTER_NAME}-pool0
    62        version: ${KUBERNETES_VERSION}
    63  ---
    64  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    65  kind: AzureManagedMachinePool
    66  metadata:
    67    name: ${CLUSTER_NAME}-pool0
    68    namespace: default
    69  spec:
    70    mode: System
    71    name: pool0
    72    sku: ${AZURE_NODE_MACHINE_TYPE}
    73  ---
    74  apiVersion: cluster.x-k8s.io/v1beta1
    75  kind: MachinePool
    76  metadata:
    77    name: ${CLUSTER_NAME}-pool1
    78    namespace: default
    79  spec:
    80    clusterName: ${CLUSTER_NAME}
    81    replicas: ${WORKER_MACHINE_COUNT:=2}
    82    template:
    83      metadata: {}
    84      spec:
    85        bootstrap:
    86          dataSecretName: ""
    87        clusterName: ${CLUSTER_NAME}
    88        infrastructureRef:
    89          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    90          kind: AzureManagedMachinePool
    91          name: ${CLUSTER_NAME}-pool1
    92        version: ${KUBERNETES_VERSION}
    93  ---
    94  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    95  kind: AzureManagedMachinePool
    96  metadata:
    97    name: ${CLUSTER_NAME}-pool1
    98    namespace: default
    99  spec:
   100    mode: User
   101    name: pool1
   102    sku: ${AZURE_NODE_MACHINE_TYPE}
   103  ---
   104  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   105  kind: AzureClusterIdentity
   106  metadata:
   107    labels:
   108      clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
   109    name: ${CLUSTER_IDENTITY_NAME}
   110    namespace: default
   111  spec:
   112    allowedNamespaces: {}
   113    clientID: ${AZURE_CLIENT_ID}
   114    clientSecret:
   115      name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME}
   116      namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE}
   117    tenantID: ${AZURE_TENANT_ID}
   118    type: ServicePrincipal