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

     1  apiVersion: cluster.x-k8s.io/v1beta1
     2  kind: Cluster
     3  metadata:
     4    labels:
     5      cloud-provider: ${CLOUD_PROVIDER_AZURE_LABEL:=azure}
     6    name: ${CLUSTER_NAME}
     7    namespace: default
     8  spec:
     9    clusterNetwork:
    10      pods:
    11        cidrBlocks:
    12        - 192.168.0.0/16
    13    controlPlaneRef:
    14      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    15      kind: KubeadmControlPlane
    16      name: ${CLUSTER_NAME}-control-plane
    17    infrastructureRef:
    18      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    19      kind: AzureCluster
    20      name: ${CLUSTER_NAME}
    21  ---
    22  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    23  kind: AzureCluster
    24  metadata:
    25    name: ${CLUSTER_NAME}
    26    namespace: default
    27  spec:
    28    additionalTags:
    29      buildProvenance: ${BUILD_PROVENANCE}
    30      creationTimestamp: ${TIMESTAMP}
    31      jobName: ${JOB_NAME}
    32    identityRef:
    33      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    34      kind: AzureClusterIdentity
    35      name: ${CLUSTER_IDENTITY_NAME}
    36    location: ${AZURE_LOCATION}
    37    networkSpec:
    38      subnets:
    39      - name: control-plane-subnet
    40        role: control-plane
    41      - name: node-subnet
    42        role: node
    43      vnet:
    44        name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet}
    45    resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}}
    46    subscriptionID: ${AZURE_SUBSCRIPTION_ID}
    47  ---
    48  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    49  kind: KubeadmControlPlane
    50  metadata:
    51    name: ${CLUSTER_NAME}-control-plane
    52    namespace: default
    53  spec:
    54    kubeadmConfigSpec:
    55      clusterConfiguration:
    56        apiServer:
    57          extraArgs:
    58            cloud-provider: external
    59          timeoutForControlPlane: 20m
    60        controllerManager:
    61          extraArgs:
    62            allocate-node-cidrs: "false"
    63            cloud-provider: external
    64            cluster-name: ${CLUSTER_NAME}
    65            v: "4"
    66        etcd:
    67          local:
    68            dataDir: /var/lib/etcddisk/etcd
    69            extraArgs:
    70              quota-backend-bytes: "8589934592"
    71      diskSetup:
    72        filesystems:
    73        - device: /dev/disk/azure/scsi1/lun0
    74          extraOpts:
    75          - -E
    76          - lazy_itable_init=1,lazy_journal_init=1
    77          filesystem: ext4
    78          label: etcd_disk
    79        - device: ephemeral0.1
    80          filesystem: ext4
    81          label: ephemeral0
    82          replaceFS: ntfs
    83        partitions:
    84        - device: /dev/disk/azure/scsi1/lun0
    85          layout: true
    86          overwrite: false
    87          tableType: gpt
    88      files:
    89      - contentFrom:
    90          secret:
    91            key: control-plane-azure.json
    92            name: ${CLUSTER_NAME}-control-plane-azure-json
    93        owner: root:root
    94        path: /etc/kubernetes/azure.json
    95        permissions: "0644"
    96      initConfiguration:
    97        nodeRegistration:
    98          kubeletExtraArgs:
    99            cloud-provider: external
   100            max-pods: "110"
   101          name: '{{ ds.meta_data["local_hostname"] }}'
   102      joinConfiguration:
   103        nodeRegistration:
   104          kubeletExtraArgs:
   105            cloud-provider: external
   106            max-pods: "110"
   107          name: '{{ ds.meta_data["local_hostname"] }}'
   108      mounts:
   109      - - LABEL=etcd_disk
   110        - /var/lib/etcddisk
   111      postKubeadmCommands: []
   112      preKubeadmCommands: []
   113    machineTemplate:
   114      infrastructureRef:
   115        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   116        kind: AzureMachineTemplate
   117        name: ${CLUSTER_NAME}-control-plane
   118    replicas: ${CONTROL_PLANE_MACHINE_COUNT:=1}
   119    version: ${KUBERNETES_VERSION}
   120  ---
   121  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   122  kind: AzureMachineTemplate
   123  metadata:
   124    name: ${CLUSTER_NAME}-control-plane
   125    namespace: default
   126  spec:
   127    template:
   128      spec:
   129        dataDisks:
   130        - diskSizeGB: 256
   131          lun: 0
   132          nameSuffix: etcddisk
   133        networkInterfaces:
   134        - privateIPConfigs: 110
   135          subnetName: control-plane-subnet
   136        osDisk:
   137          diskSizeGB: 128
   138          osType: Linux
   139        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   140        vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE}
   141  ---
   142  apiVersion: cluster.x-k8s.io/v1beta1
   143  kind: MachineDeployment
   144  metadata:
   145    name: ${CLUSTER_NAME}-md-0
   146    namespace: default
   147  spec:
   148    clusterName: ${CLUSTER_NAME}
   149    replicas: ${WORKER_MACHINE_COUNT:=2}
   150    selector:
   151      matchLabels: null
   152    template:
   153      spec:
   154        bootstrap:
   155          configRef:
   156            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   157            kind: KubeadmConfigTemplate
   158            name: ${CLUSTER_NAME}-md-0
   159        clusterName: ${CLUSTER_NAME}
   160        infrastructureRef:
   161          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   162          kind: AzureMachineTemplate
   163          name: ${CLUSTER_NAME}-md-0
   164        version: ${KUBERNETES_VERSION}
   165  ---
   166  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   167  kind: AzureMachineTemplate
   168  metadata:
   169    name: ${CLUSTER_NAME}-md-0
   170    namespace: default
   171  spec:
   172    template:
   173      spec:
   174        networkInterfaces:
   175        - privateIPConfigs: 110
   176          subnetName: node-subnet
   177        osDisk:
   178          diskSizeGB: 128
   179          osType: Linux
   180        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   181        vmSize: ${AZURE_NODE_MACHINE_TYPE}
   182  ---
   183  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   184  kind: KubeadmConfigTemplate
   185  metadata:
   186    name: ${CLUSTER_NAME}-md-0
   187    namespace: default
   188  spec:
   189    template:
   190      spec:
   191        files:
   192        - contentFrom:
   193            secret:
   194              key: worker-node-azure.json
   195              name: ${CLUSTER_NAME}-md-0-azure-json
   196          owner: root:root
   197          path: /etc/kubernetes/azure.json
   198          permissions: "0644"
   199        joinConfiguration:
   200          nodeRegistration:
   201            kubeletExtraArgs:
   202              cloud-provider: external
   203              max-pods: "110"
   204            name: '{{ ds.meta_data["local_hostname"] }}'
   205        preKubeadmCommands: []
   206  ---
   207  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   208  kind: AzureClusterIdentity
   209  metadata:
   210    labels:
   211      clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
   212    name: ${CLUSTER_IDENTITY_NAME}
   213    namespace: default
   214  spec:
   215    allowedNamespaces: {}
   216    clientID: ${AZURE_CLIENT_ID}
   217    clientSecret:
   218      name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME}
   219      namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE}
   220    tenantID: ${AZURE_TENANT_ID}
   221    type: ServicePrincipal
   222  ---
   223  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   224  kind: HelmChartProxy
   225  metadata:
   226    name: azuredisk-csi-driver-chart
   227    namespace: default
   228  spec:
   229    chartName: azuredisk-csi-driver
   230    clusterSelector:
   231      matchLabels:
   232        azuredisk-csi: "true"
   233    namespace: kube-system
   234    releaseName: azuredisk-csi-driver-oot
   235    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/azuredisk-csi-driver/master/charts
   236    valuesTemplate: |-
   237      controller:
   238        replicas: 1
   239        runOnControlPlane: true
   240      windows:
   241        useHostProcessContainers: {{ hasKey .Cluster.metadata.labels "cni-windows" }}
   242  ---
   243  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   244  kind: HelmChartProxy
   245  metadata:
   246    name: cloud-provider-azure-chart
   247    namespace: default
   248  spec:
   249    chartName: cloud-provider-azure
   250    clusterSelector:
   251      matchLabels:
   252        cloud-provider: azure
   253    releaseName: cloud-provider-azure-oot
   254    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo
   255    valuesTemplate: |
   256      infra:
   257        clusterName: {{ .Cluster.metadata.name }}
   258      cloudControllerManager:
   259        clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }}
   260        logVerbosity: 4
   261  ---
   262  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   263  kind: HelmChartProxy
   264  metadata:
   265    name: cloud-provider-azure-chart-ci
   266    namespace: default
   267  spec:
   268    chartName: cloud-provider-azure
   269    clusterSelector:
   270      matchLabels:
   271        cloud-provider: azure-ci
   272    releaseName: cloud-provider-azure-oot
   273    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo
   274    valuesTemplate: |
   275      infra:
   276        clusterName: {{ .Cluster.metadata.name }}
   277      cloudControllerManager:
   278        cloudConfig: ${CLOUD_CONFIG:-"/etc/kubernetes/azure.json"}
   279        cloudConfigSecretName: ${CONFIG_SECRET_NAME:-""}
   280        clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }}
   281        imageName: "${CCM_IMAGE_NAME:-""}"
   282        imageRepository: "${IMAGE_REGISTRY:-""}"
   283        imageTag: "${IMAGE_TAG_CCM:-""}"
   284        logVerbosity: ${CCM_LOG_VERBOSITY:-4}
   285        replicas: ${CCM_COUNT:-1}
   286        enableDynamicReloading: ${ENABLE_DYNAMIC_RELOADING:-false}
   287      cloudNodeManager:
   288        imageName: "${CNM_IMAGE_NAME:-""}"
   289        imageRepository: "${IMAGE_REGISTRY:-""}"
   290        imageTag: "${IMAGE_TAG_CNM:-""}"