sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/test/ci/cluster-template-prow-aks-clusterclass.yaml (about)

     1  apiVersion: cluster.x-k8s.io/v1beta1
     2  kind: ClusterClass
     3  metadata:
     4    name: ${CLUSTER_CLASS_NAME}
     5    namespace: default
     6  spec:
     7    controlPlane:
     8      ref:
     9        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    10        kind: AzureManagedControlPlaneTemplate
    11        name: ${CLUSTER_NAME}-control-plane
    12    infrastructure:
    13      ref:
    14        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    15        kind: AzureManagedClusterTemplate
    16        name: ${CLUSTER_NAME}
    17    patches:
    18    - definitions:
    19      - jsonPatches:
    20        - op: replace
    21          path: /spec/template/spec/files
    22          valueFrom:
    23            template: |
    24              - contentFrom:
    25                  secret:
    26                    key: worker-node-azure.json
    27                    name: "{{ .builtin.machinePool.infrastructureRef.name }}-azure-json"
    28                owner: root:root
    29                path: /etc/kubernetes/azure.json
    30                permissions: "0644"
    31        selector:
    32          apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    33          kind: KubeadmConfigTemplate
    34          matchResources:
    35            machinePoolClass:
    36              names:
    37              - default-system
    38              - default-worker
    39      name: workerAzureJsonSecretName
    40    workers:
    41      machinePools:
    42      - class: default-system
    43        template:
    44          bootstrap:
    45            ref:
    46              apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    47              kind: KubeadmConfigTemplate
    48              name: ${CLUSTER_NAME}-pool0
    49          infrastructure:
    50            ref:
    51              apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    52              kind: AzureManagedMachinePoolTemplate
    53              name: ${CLUSTER_NAME}-pool0
    54      - class: default-worker
    55        template:
    56          bootstrap:
    57            ref:
    58              apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    59              kind: KubeadmConfigTemplate
    60              name: ${CLUSTER_NAME}-pool1
    61          infrastructure:
    62            ref:
    63              apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    64              kind: AzureManagedMachinePoolTemplate
    65              name: ${CLUSTER_NAME}-pool1
    66  ---
    67  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    68  kind: AzureManagedControlPlaneTemplate
    69  metadata:
    70    name: ${CLUSTER_NAME}-control-plane
    71    namespace: default
    72  spec:
    73    template:
    74      spec:
    75        additionalTags:
    76          buildProvenance: ${BUILD_PROVENANCE}
    77          creationTimestamp: ${TIMESTAMP}
    78          jobName: ${JOB_NAME}
    79        addonProfiles:
    80        - enabled: true
    81          name: azurepolicy
    82        identityRef:
    83          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    84          kind: AzureClusterIdentity
    85          name: ${CLUSTER_IDENTITY_NAME}
    86        location: ${AZURE_LOCATION}
    87        sku:
    88          tier: Standard
    89        subscriptionID: ${AZURE_SUBSCRIPTION_ID}
    90        version: ${KUBERNETES_VERSION}
    91  ---
    92  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    93  kind: AzureManagedClusterTemplate
    94  metadata:
    95    name: ${CLUSTER_NAME}
    96    namespace: default
    97  spec:
    98    template:
    99      spec: {}
   100  ---
   101  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   102  kind: AzureManagedMachinePoolTemplate
   103  metadata:
   104    name: ${CLUSTER_NAME}-pool0
   105    namespace: default
   106  spec:
   107    template:
   108      spec:
   109        availabilityZones:
   110        - "1"
   111        - "2"
   112        enableNodePublicIP: false
   113        maxPods: 30
   114        mode: System
   115        name: pool0
   116        osDiskSizeGB: 30
   117        osDiskType: Managed
   118        sku: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3}
   119  ---
   120  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   121  kind: AzureManagedMachinePoolTemplate
   122  metadata:
   123    name: ${CLUSTER_NAME}-pool1
   124    namespace: default
   125  spec:
   126    template:
   127      spec:
   128        enableNodePublicIP: false
   129        kubeletConfig:
   130          allowedUnsafeSysctls:
   131          - net.*
   132          - kernel.msg*
   133          containerLogMaxFiles: 50
   134          containerLogMaxSizeMB: 500
   135          cpuCfsQuota: true
   136          cpuCfsQuotaPeriod: 110ms
   137          cpuManagerPolicy: static
   138          failSwapOn: false
   139          imageGcHighThreshold: 70
   140          imageGcLowThreshold: 50
   141          podMaxPids: 2048
   142        linuxOSConfig:
   143          swapFileSizeMB: 1500
   144          sysctls:
   145            fsAioMaxNr: 65536
   146            fsFileMax: 709620
   147            fsInotifyMaxUserWatches: 1048576
   148            fsNrOpen: 1048576
   149            kernelThreadsMax: 55601
   150            netCoreNetdevMaxBacklog: 1000
   151            netCoreOptmemMax: 20480
   152            netCoreRmemDefault: 212992
   153            netCoreRmemMax: 212992
   154            netCoreSomaxconn: 16384
   155            netCoreWmemDefault: 212992
   156            netCoreWmemMax: 212992
   157            netIpv4IPLocalPortRange: 32768 60999
   158            netIpv4NeighDefaultGcThresh1: 4096
   159            netIpv4NeighDefaultGcThresh2: 8192
   160            netIpv4NeighDefaultGcThresh3: 16384
   161            netIpv4TCPFinTimeout: 60
   162            netIpv4TCPKeepaliveProbes: 9
   163            netIpv4TCPKeepaliveTime: 7200
   164            netIpv4TCPMaxSynBacklog: 16384
   165            netIpv4TCPMaxTwBuckets: 32768
   166            netIpv4TCPTwReuse: false
   167            netIpv4TCPkeepaliveIntvl: 75
   168            netNetfilterNfConntrackBuckets: 65536
   169            netNetfilterNfConntrackMax: 131072
   170            vmMaxMapCount: 65530
   171            vmSwappiness: 60
   172            vmVfsCachePressure: 100
   173          transparentHugePageDefrag: madvise
   174          transparentHugePageEnabled: always
   175        maxPods: 64
   176        mode: User
   177        name: pool1
   178        nodeLabels:
   179          type: shared
   180        osDiskSizeGB: 40
   181        osDiskType: Ephemeral
   182        scaleSetPriority: Regular
   183        sku: ${AZURE_AKS_NODE_MACHINE_TYPE:=Standard_D2s_v3}
   184        taints:
   185        - effect: NoSchedule
   186          key: type
   187          value: shared
   188  ---
   189  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   190  kind: AzureClusterIdentity
   191  metadata:
   192    labels:
   193      clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
   194    name: ${CLUSTER_IDENTITY_NAME}
   195    namespace: default
   196  spec:
   197    allowedNamespaces: {}
   198    clientID: ${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY}
   199    tenantID: ${AZURE_TENANT_ID}
   200    type: ${CLUSTER_IDENTITY_TYPE:=WorkloadIdentity}
   201  ---
   202  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   203  kind: KubeadmConfigTemplate
   204  metadata:
   205    name: ${CLUSTER_NAME}-pool0
   206    namespace: default
   207  spec:
   208    template:
   209      spec:
   210        files:
   211        - contentFrom:
   212            secret:
   213              key: worker-node-azure.json
   214              name: replace_me
   215          owner: root:root
   216          path: /etc/kubernetes/azure.json
   217          permissions: "0644"
   218        joinConfiguration:
   219          nodeRegistration:
   220            kubeletExtraArgs:
   221              cloud-provider: external
   222            name: '{{ ds.meta_data["local_hostname"] }}'
   223        preKubeadmCommands: []
   224  ---
   225  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   226  kind: KubeadmConfigTemplate
   227  metadata:
   228    name: ${CLUSTER_NAME}-pool1
   229    namespace: default
   230  spec:
   231    template:
   232      spec:
   233        files:
   234        - contentFrom:
   235            secret:
   236              key: worker-node-azure.json
   237              name: replace_me
   238          owner: root:root
   239          path: /etc/kubernetes/azure.json
   240          permissions: "0644"
   241        joinConfiguration:
   242          nodeRegistration:
   243            kubeletExtraArgs:
   244              cloud-provider: external
   245            name: '{{ ds.meta_data["local_hostname"] }}'
   246        preKubeadmCommands: []