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