sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/test/ci/cluster-template-prow-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 additionalTags: 27 buildProvenance: ${BUILD_PROVENANCE} 28 creationTimestamp: ${TIMESTAMP} 29 jobName: ${JOB_NAME} 30 addonProfiles: 31 - enabled: true 32 name: azurepolicy 33 identityRef: 34 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 35 kind: AzureClusterIdentity 36 name: ${CLUSTER_IDENTITY_NAME} 37 location: ${AZURE_LOCATION} 38 oidcIssuerProfile: 39 enabled: true 40 resourceGroupName: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} 41 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 42 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 43 version: ${KUBERNETES_VERSION} 44 --- 45 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 46 kind: AzureManagedCluster 47 metadata: 48 name: ${CLUSTER_NAME} 49 namespace: default 50 --- 51 apiVersion: cluster.x-k8s.io/v1beta1 52 kind: MachinePool 53 metadata: 54 name: ${CLUSTER_NAME}-pool0 55 namespace: default 56 spec: 57 clusterName: ${CLUSTER_NAME} 58 replicas: ${WORKER_MACHINE_COUNT:=2} 59 template: 60 metadata: {} 61 spec: 62 bootstrap: 63 dataSecretName: "" 64 clusterName: ${CLUSTER_NAME} 65 infrastructureRef: 66 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 67 kind: AzureManagedMachinePool 68 name: ${CLUSTER_NAME}-pool0 69 version: ${KUBERNETES_VERSION} 70 --- 71 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 72 kind: AzureManagedMachinePool 73 metadata: 74 name: ${CLUSTER_NAME}-pool0 75 namespace: default 76 spec: 77 availabilityZones: 78 - "1" 79 - "2" 80 enableNodePublicIP: false 81 enableUltraSSD: true 82 maxPods: 30 83 mode: System 84 name: pool0 85 osDiskSizeGB: 30 86 osDiskType: Managed 87 sku: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} 88 --- 89 apiVersion: cluster.x-k8s.io/v1beta1 90 kind: MachinePool 91 metadata: 92 name: ${CLUSTER_NAME}-pool1 93 namespace: default 94 spec: 95 clusterName: ${CLUSTER_NAME} 96 replicas: ${WORKER_MACHINE_COUNT:=2} 97 template: 98 metadata: {} 99 spec: 100 bootstrap: 101 dataSecretName: "" 102 clusterName: ${CLUSTER_NAME} 103 infrastructureRef: 104 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 105 kind: AzureManagedMachinePool 106 name: ${CLUSTER_NAME}-pool1 107 version: ${KUBERNETES_VERSION} 108 --- 109 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 110 kind: AzureManagedMachinePool 111 metadata: 112 name: ${CLUSTER_NAME}-pool1 113 namespace: default 114 spec: 115 enableNodePublicIP: false 116 kubeletConfig: 117 allowedUnsafeSysctls: 118 - net.* 119 - kernel.msg* 120 containerLogMaxFiles: 50 121 containerLogMaxSizeMB: 500 122 cpuCfsQuota: true 123 cpuCfsQuotaPeriod: 110ms 124 cpuManagerPolicy: static 125 failSwapOn: false 126 imageGcHighThreshold: 70 127 imageGcLowThreshold: 50 128 podMaxPids: 2048 129 linuxOSConfig: 130 swapFileSizeMB: 1500 131 sysctls: 132 fsAioMaxNr: 65536 133 fsFileMax: 709620 134 fsInotifyMaxUserWatches: 1048576 135 fsNrOpen: 1048576 136 kernelThreadsMax: 55601 137 netCoreNetdevMaxBacklog: 1000 138 netCoreOptmemMax: 20480 139 netCoreRmemDefault: 212992 140 netCoreRmemMax: 212992 141 netCoreSomaxconn: 16384 142 netCoreWmemDefault: 212992 143 netCoreWmemMax: 212992 144 netIpv4IPLocalPortRange: 32768 60999 145 netIpv4NeighDefaultGcThresh1: 4096 146 netIpv4NeighDefaultGcThresh2: 8192 147 netIpv4NeighDefaultGcThresh3: 16384 148 netIpv4TCPFinTimeout: 60 149 netIpv4TCPKeepaliveProbes: 9 150 netIpv4TCPKeepaliveTime: 7200 151 netIpv4TCPMaxSynBacklog: 16384 152 netIpv4TCPMaxTwBuckets: 32768 153 netIpv4TCPTwReuse: false 154 netIpv4TCPkeepaliveIntvl: 75 155 netNetfilterNfConntrackBuckets: 65536 156 netNetfilterNfConntrackMax: 131072 157 vmMaxMapCount: 65530 158 vmSwappiness: 60 159 vmVfsCachePressure: 100 160 transparentHugePageDefrag: madvise 161 transparentHugePageEnabled: always 162 maxPods: 64 163 mode: User 164 name: pool1 165 nodeLabels: 166 type: shared 167 osDiskSizeGB: 40 168 osDiskType: Ephemeral 169 scaleSetPriority: Regular 170 sku: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3} 171 taints: 172 - effect: NoSchedule 173 key: type 174 value: shared 175 --- 176 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 177 kind: AzureClusterIdentity 178 metadata: 179 labels: 180 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 181 name: ${CLUSTER_IDENTITY_NAME} 182 namespace: default 183 spec: 184 allowedNamespaces: {} 185 clientID: ${AZURE_CLIENT_ID} 186 clientSecret: 187 name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} 188 namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} 189 tenantID: ${AZURE_TENANT_ID} 190 type: ServicePrincipal 191 --- 192 apiVersion: cluster.x-k8s.io/v1beta1 193 kind: MachinePool 194 metadata: 195 name: ${CLUSTER_NAME}-pool2 196 namespace: default 197 spec: 198 clusterName: ${CLUSTER_NAME} 199 replicas: 1 200 template: 201 metadata: {} 202 spec: 203 bootstrap: 204 dataSecretName: "" 205 clusterName: ${CLUSTER_NAME} 206 infrastructureRef: 207 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 208 kind: AzureManagedMachinePool 209 name: ${CLUSTER_NAME}-pool2 210 version: ${KUBERNETES_VERSION} 211 --- 212 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 213 kind: AzureManagedMachinePool 214 metadata: 215 name: ${CLUSTER_NAME}-pool2 216 namespace: default 217 spec: 218 mode: User 219 name: pool2 220 osType: Windows 221 sku: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3}