sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/test/ci/cluster-template-prow-aks-aso.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: Cluster 3 metadata: 4 name: ${CLUSTER_NAME} 5 namespace: default 6 spec: 7 controlPlaneRef: 8 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 9 kind: AzureASOManagedControlPlane 10 name: ${CLUSTER_NAME} 11 infrastructureRef: 12 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 13 kind: AzureASOManagedCluster 14 name: ${CLUSTER_NAME} 15 --- 16 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 17 kind: AzureASOManagedControlPlane 18 metadata: 19 name: ${CLUSTER_NAME} 20 namespace: default 21 spec: 22 resources: 23 - apiVersion: containerservice.azure.com/v1api20231001 24 kind: ManagedCluster 25 metadata: 26 annotations: 27 serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME} 28 name: ${CLUSTER_NAME} 29 spec: 30 dnsPrefix: ${CLUSTER_NAME} 31 identity: 32 type: SystemAssigned 33 location: ${AZURE_LOCATION} 34 networkProfile: 35 networkPlugin: azure 36 owner: 37 name: ${CLUSTER_NAME} 38 servicePrincipalProfile: 39 clientId: msi 40 sku: 41 name: Base 42 tier: Standard 43 tags: 44 buildProvenance: ${BUILD_PROVENANCE} 45 creationTimestamp: ${TIMESTAMP} 46 jobName: ${JOB_NAME} 47 version: ${KUBERNETES_VERSION} 48 --- 49 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 50 kind: AzureASOManagedCluster 51 metadata: 52 name: ${CLUSTER_NAME} 53 namespace: default 54 spec: 55 resources: 56 - apiVersion: resources.azure.com/v1api20200601 57 kind: ResourceGroup 58 metadata: 59 annotations: 60 serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME} 61 name: ${CLUSTER_NAME} 62 spec: 63 location: ${AZURE_LOCATION} 64 tags: 65 buildProvenance: ${BUILD_PROVENANCE} 66 creationTimestamp: ${TIMESTAMP} 67 jobName: ${JOB_NAME} 68 --- 69 apiVersion: cluster.x-k8s.io/v1beta1 70 kind: MachinePool 71 metadata: 72 name: ${CLUSTER_NAME}-pool0 73 namespace: default 74 spec: 75 clusterName: ${CLUSTER_NAME} 76 replicas: ${WORKER_MACHINE_COUNT:=2} 77 template: 78 metadata: {} 79 spec: 80 bootstrap: 81 dataSecretName: "" 82 clusterName: ${CLUSTER_NAME} 83 infrastructureRef: 84 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 85 kind: AzureASOManagedMachinePool 86 name: ${CLUSTER_NAME}-pool0 87 version: ${KUBERNETES_VERSION} 88 --- 89 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 90 kind: AzureASOManagedMachinePool 91 metadata: 92 name: ${CLUSTER_NAME}-pool0 93 namespace: default 94 spec: 95 resources: 96 - apiVersion: containerservice.azure.com/v1api20231001 97 kind: ManagedClustersAgentPool 98 metadata: 99 annotations: 100 serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME} 101 name: ${CLUSTER_NAME}-pool0 102 spec: 103 azureName: pool0 104 mode: System 105 owner: 106 name: ${CLUSTER_NAME} 107 type: VirtualMachineScaleSets 108 vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} 109 --- 110 apiVersion: cluster.x-k8s.io/v1beta1 111 kind: MachinePool 112 metadata: 113 name: ${CLUSTER_NAME}-pool1 114 namespace: default 115 spec: 116 clusterName: ${CLUSTER_NAME} 117 replicas: ${WORKER_MACHINE_COUNT:=2} 118 template: 119 metadata: {} 120 spec: 121 bootstrap: 122 dataSecretName: "" 123 clusterName: ${CLUSTER_NAME} 124 infrastructureRef: 125 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 126 kind: AzureASOManagedMachinePool 127 name: ${CLUSTER_NAME}-pool1 128 version: ${KUBERNETES_VERSION} 129 --- 130 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 131 kind: AzureASOManagedMachinePool 132 metadata: 133 name: ${CLUSTER_NAME}-pool1 134 namespace: default 135 spec: 136 resources: 137 - apiVersion: containerservice.azure.com/v1api20231001 138 kind: ManagedClustersAgentPool 139 metadata: 140 annotations: 141 serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME} 142 name: ${CLUSTER_NAME}-pool1 143 spec: 144 azureName: pool1 145 mode: User 146 owner: 147 name: ${CLUSTER_NAME} 148 type: VirtualMachineScaleSets 149 vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} 150 --- 151 apiVersion: cluster.x-k8s.io/v1beta1 152 kind: MachinePool 153 metadata: 154 name: ${CLUSTER_NAME}-pool2 155 namespace: default 156 spec: 157 clusterName: ${CLUSTER_NAME} 158 replicas: 1 159 template: 160 metadata: {} 161 spec: 162 bootstrap: 163 dataSecretName: "" 164 clusterName: ${CLUSTER_NAME} 165 infrastructureRef: 166 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 167 kind: AzureASOManagedMachinePool 168 name: ${CLUSTER_NAME}-pool2 169 version: ${KUBERNETES_VERSION} 170 --- 171 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 172 kind: AzureASOManagedMachinePool 173 metadata: 174 name: ${CLUSTER_NAME}-pool2 175 namespace: default 176 spec: 177 resources: 178 - apiVersion: containerservice.azure.com/v1api20231001 179 kind: ManagedClustersAgentPool 180 metadata: 181 annotations: 182 serviceoperator.azure.com/credential-from: ${ASO_CREDENTIAL_SECRET_NAME} 183 name: ${CLUSTER_NAME}-pool2 184 spec: 185 azureName: pool2 186 mode: User 187 osType: Windows 188 owner: 189 name: ${CLUSTER_NAME} 190 type: VirtualMachineScaleSets 191 vmSize: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3}