sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/test/ci/cluster-template-prow-ipv6.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      cni: calico-ipv6
     7    name: ${CLUSTER_NAME}
     8    namespace: default
     9  spec:
    10    clusterNetwork:
    11      pods:
    12        cidrBlocks:
    13        - 2001:1234:5678:9a40::/58
    14      services:
    15        cidrBlocks:
    16        - fd00::/108
    17    controlPlaneRef:
    18      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    19      kind: KubeadmControlPlane
    20      name: ${CLUSTER_NAME}-control-plane
    21    infrastructureRef:
    22      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    23      kind: AzureCluster
    24      name: ${CLUSTER_NAME}
    25  ---
    26  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    27  kind: AzureCluster
    28  metadata:
    29    name: ${CLUSTER_NAME}
    30    namespace: default
    31  spec:
    32    additionalTags:
    33      buildProvenance: ${BUILD_PROVENANCE}
    34      creationTimestamp: ${TIMESTAMP}
    35      jobName: ${JOB_NAME}
    36    identityRef:
    37      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    38      kind: AzureClusterIdentity
    39      name: ${CLUSTER_IDENTITY_NAME}
    40    location: ${AZURE_LOCATION}
    41    networkSpec:
    42      subnets:
    43      - cidrBlocks:
    44        - 10.0.0.0/16
    45        - 2001:1234:5678:9abc::/64
    46        name: control-plane-subnet
    47        role: control-plane
    48      - cidrBlocks:
    49        - 10.1.0.0/16
    50        - 2001:1234:5678:9abd::/64
    51        name: node-subnet
    52        role: node
    53      vnet:
    54        cidrBlocks:
    55        - 10.0.0.0/8
    56        - 2001:1234:5678:9a00::/56
    57        name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet}
    58    resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}}
    59    subscriptionID: ${AZURE_SUBSCRIPTION_ID}
    60  ---
    61  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    62  kind: KubeadmControlPlane
    63  metadata:
    64    name: ${CLUSTER_NAME}-control-plane
    65    namespace: default
    66  spec:
    67    kubeadmConfigSpec:
    68      clusterConfiguration:
    69        apiServer:
    70          extraArgs:
    71            bind-address: '::'
    72            cloud-provider: external
    73          timeoutForControlPlane: 20m
    74        controllerManager:
    75          extraArgs:
    76            allocate-node-cidrs: "true"
    77            bind-address: '::'
    78            cloud-provider: external
    79            cluster-cidr: 2001:1234:5678:9a40::/58
    80            cluster-name: ${CLUSTER_NAME}
    81            configure-cloud-routes: "true"
    82            v: "4"
    83        etcd:
    84          local:
    85            dataDir: /var/lib/etcddisk/etcd
    86            extraArgs:
    87              quota-backend-bytes: "8589934592"
    88        scheduler:
    89          extraArgs:
    90            bind-address: '::'
    91      diskSetup:
    92        filesystems:
    93        - device: /dev/disk/azure/scsi1/lun0
    94          extraOpts:
    95          - -E
    96          - lazy_itable_init=1,lazy_journal_init=1
    97          filesystem: ext4
    98          label: etcd_disk
    99        - device: ephemeral0.1
   100          filesystem: ext4
   101          label: ephemeral0
   102          replaceFS: ntfs
   103        partitions:
   104        - device: /dev/disk/azure/scsi1/lun0
   105          layout: true
   106          overwrite: false
   107          tableType: gpt
   108      files:
   109      - contentFrom:
   110          secret:
   111            key: control-plane-azure.json
   112            name: ${CLUSTER_NAME}-control-plane-azure-json
   113        owner: root:root
   114        path: /etc/kubernetes/azure.json
   115        permissions: "0644"
   116      initConfiguration:
   117        localAPIEndpoint:
   118          advertiseAddress: '::'
   119          bindPort: 6443
   120        nodeRegistration:
   121          kubeletExtraArgs:
   122            cloud-provider: external
   123            cluster-dns: fd00::10
   124          name: '{{ ds.meta_data["local_hostname"] }}'
   125      joinConfiguration:
   126        controlPlane:
   127          localAPIEndpoint:
   128            advertiseAddress: '::'
   129            bindPort: 6443
   130        nodeRegistration:
   131          kubeletExtraArgs:
   132            cloud-provider: external
   133            cluster-dns: fd00::10
   134          name: '{{ ds.meta_data["local_hostname"] }}'
   135      mounts:
   136      - - LABEL=etcd_disk
   137        - /var/lib/etcddisk
   138      postKubeadmCommands: []
   139      preKubeadmCommands: []
   140    machineTemplate:
   141      infrastructureRef:
   142        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   143        kind: AzureMachineTemplate
   144        name: ${CLUSTER_NAME}-control-plane
   145    replicas: ${CONTROL_PLANE_MACHINE_COUNT:=1}
   146    version: ${KUBERNETES_VERSION}
   147  ---
   148  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   149  kind: AzureMachineTemplate
   150  metadata:
   151    name: ${CLUSTER_NAME}-control-plane
   152    namespace: default
   153  spec:
   154    template:
   155      spec:
   156        dataDisks:
   157        - diskSizeGB: 256
   158          lun: 0
   159          nameSuffix: etcddisk
   160        enableIPForwarding: true
   161        osDisk:
   162          diskSizeGB: 128
   163          osType: Linux
   164        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   165        vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE}
   166  ---
   167  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   168  kind: AzureClusterIdentity
   169  metadata:
   170    labels:
   171      clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
   172    name: ${CLUSTER_IDENTITY_NAME}
   173    namespace: default
   174  spec:
   175    allowedNamespaces: {}
   176    clientID: ${AZURE_CLIENT_ID}
   177    clientSecret:
   178      name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME}
   179      namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE}
   180    tenantID: ${AZURE_TENANT_ID}
   181    type: ServicePrincipal
   182  ---
   183  apiVersion: cluster.x-k8s.io/v1beta1
   184  kind: MachineDeployment
   185  metadata:
   186    name: ${CLUSTER_NAME}-md-0
   187    namespace: default
   188  spec:
   189    clusterName: ${CLUSTER_NAME}
   190    replicas: ${WORKER_MACHINE_COUNT:=2}
   191    selector:
   192      matchLabels: null
   193    template:
   194      spec:
   195        bootstrap:
   196          configRef:
   197            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   198            kind: KubeadmConfigTemplate
   199            name: ${CLUSTER_NAME}-md-0
   200        clusterName: ${CLUSTER_NAME}
   201        infrastructureRef:
   202          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   203          kind: AzureMachineTemplate
   204          name: ${CLUSTER_NAME}-md-0
   205        version: ${KUBERNETES_VERSION}
   206  ---
   207  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   208  kind: AzureMachineTemplate
   209  metadata:
   210    name: ${CLUSTER_NAME}-md-0
   211    namespace: default
   212  spec:
   213    template:
   214      spec:
   215        enableIPForwarding: true
   216        osDisk:
   217          diskSizeGB: 30
   218          managedDisk:
   219            storageAccountType: Premium_LRS
   220          osType: Linux
   221        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   222        vmSize: ${AZURE_NODE_MACHINE_TYPE}
   223  ---
   224  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   225  kind: KubeadmConfigTemplate
   226  metadata:
   227    name: ${CLUSTER_NAME}-md-0
   228    namespace: default
   229  spec:
   230    template:
   231      spec:
   232        clusterConfiguration:
   233          apiServer:
   234            extraArgs:
   235              bind-address: '::'
   236          controllerManager:
   237            extraArgs:
   238              bind-address: '::'
   239          scheduler:
   240            extraArgs:
   241              bind-address: '::'
   242        files:
   243        - contentFrom:
   244            secret:
   245              key: worker-node-azure.json
   246              name: ${CLUSTER_NAME}-md-0-azure-json
   247          owner: root:root
   248          path: /etc/kubernetes/azure.json
   249          permissions: "0644"
   250        joinConfiguration:
   251          nodeRegistration:
   252            kubeletExtraArgs:
   253              cloud-provider: external
   254              cluster-dns: '[fd00::10]'
   255            name: '{{ ds.meta_data["local_hostname"] }}'
   256  ---
   257  apiVersion: cluster.x-k8s.io/v1beta1
   258  kind: MachinePool
   259  metadata:
   260    name: ${CLUSTER_NAME}-mp-0
   261    namespace: default
   262  spec:
   263    clusterName: ${CLUSTER_NAME}
   264    replicas: ${WORKER_MACHINE_COUNT}
   265    template:
   266      spec:
   267        bootstrap:
   268          configRef:
   269            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   270            kind: KubeadmConfig
   271            name: ${CLUSTER_NAME}-mp-0
   272        clusterName: ${CLUSTER_NAME}
   273        infrastructureRef:
   274          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   275          kind: AzureMachinePool
   276          name: ${CLUSTER_NAME}-mp-0
   277        version: ${KUBERNETES_VERSION}
   278  ---
   279  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   280  kind: AzureMachinePool
   281  metadata:
   282    name: ${CLUSTER_NAME}-mp-0
   283    namespace: default
   284  spec:
   285    location: ${AZURE_LOCATION}
   286    strategy:
   287      rollingUpdate:
   288        deletePolicy: Oldest
   289        maxSurge: 25%
   290        maxUnavailable: 1
   291      type: RollingUpdate
   292    template:
   293      osDisk:
   294        diskSizeGB: 30
   295        managedDisk:
   296          storageAccountType: Premium_LRS
   297        osType: Linux
   298      sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   299      vmSize: ${AZURE_NODE_MACHINE_TYPE}
   300  ---
   301  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
   302  kind: KubeadmConfig
   303  metadata:
   304    name: ${CLUSTER_NAME}-mp-0
   305    namespace: default
   306  spec:
   307    clusterConfiguration:
   308      apiServer:
   309        extraArgs:
   310          bind-address: '::'
   311      controllerManager:
   312        extraArgs:
   313          bind-address: '::'
   314      scheduler:
   315        extraArgs:
   316          bind-address: '::'
   317    files:
   318    - contentFrom:
   319        secret:
   320          key: worker-node-azure.json
   321          name: ${CLUSTER_NAME}-md-0-azure-json
   322      owner: root:root
   323      path: /etc/kubernetes/azure.json
   324      permissions: "0644"
   325    joinConfiguration:
   326      nodeRegistration:
   327        kubeletExtraArgs:
   328          cloud-provider: external
   329          cluster-dns: '[fd00::10]'
   330        name: '{{ ds.meta_data["local_hostname"] }}'
   331  ---
   332  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   333  kind: HelmChartProxy
   334  metadata:
   335    name: calico-ipv6
   336    namespace: default
   337  spec:
   338    chartName: tigera-operator
   339    clusterSelector:
   340      matchLabels:
   341        cni: calico-ipv6
   342    namespace: tigera-operator
   343    releaseName: projectcalico
   344    repoURL: https://docs.tigera.io/calico/charts
   345    valuesTemplate: |-
   346      installation:
   347        cni:
   348          type: Calico
   349          ipam:
   350            type: HostLocal
   351        calicoNetwork:
   352          bgp: Disabled
   353          mtu: 1350
   354          ipPools:{{range $i, $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
   355          - blockSize: 122
   356            cidr: {{ $cidr }}
   357            encapsulation: None
   358            natOutgoing: Enabled
   359            nodeSelector: all(){{end}}
   360        registry: mcr.microsoft.com/oss
   361      # Image and registry configuration for the tigera/operator pod.
   362      tigeraOperator:
   363        image: tigera/operator
   364        registry: mcr.microsoft.com/oss
   365      calicoctl:
   366        image: mcr.microsoft.com/oss/calico/ctl
   367    version: ${CALICO_VERSION}
   368  ---
   369  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   370  kind: HelmChartProxy
   371  metadata:
   372    name: azuredisk-csi-driver-chart
   373    namespace: default
   374  spec:
   375    chartName: azuredisk-csi-driver
   376    clusterSelector:
   377      matchLabels:
   378        azuredisk-csi: "true"
   379    namespace: kube-system
   380    releaseName: azuredisk-csi-driver-oot
   381    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/azuredisk-csi-driver/master/charts
   382    valuesTemplate: |-
   383      controller:
   384        replicas: 1
   385        runOnControlPlane: true
   386      windows:
   387        useHostProcessContainers: {{ hasKey .Cluster.metadata.labels "cni-windows" }}
   388  ---
   389  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   390  kind: HelmChartProxy
   391  metadata:
   392    name: cloud-provider-azure-chart
   393    namespace: default
   394  spec:
   395    chartName: cloud-provider-azure
   396    clusterSelector:
   397      matchLabels:
   398        cloud-provider: azure
   399    releaseName: cloud-provider-azure-oot
   400    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo
   401    valuesTemplate: |
   402      infra:
   403        clusterName: {{ .Cluster.metadata.name }}
   404      cloudControllerManager:
   405        clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }}
   406        logVerbosity: 4
   407  ---
   408  apiVersion: addons.cluster.x-k8s.io/v1alpha1
   409  kind: HelmChartProxy
   410  metadata:
   411    name: cloud-provider-azure-chart-ci
   412    namespace: default
   413  spec:
   414    chartName: cloud-provider-azure
   415    clusterSelector:
   416      matchLabels:
   417        cloud-provider: azure-ci
   418    releaseName: cloud-provider-azure-oot
   419    repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo
   420    valuesTemplate: |
   421      infra:
   422        clusterName: {{ .Cluster.metadata.name }}
   423      cloudControllerManager:
   424        cloudConfig: ${CLOUD_CONFIG:-"/etc/kubernetes/azure.json"}
   425        cloudConfigSecretName: ${CONFIG_SECRET_NAME:-""}
   426        clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }}
   427        imageName: "${CCM_IMAGE_NAME:-""}"
   428        imageRepository: "${IMAGE_REGISTRY:-""}"
   429        imageTag: "${IMAGE_TAG_CCM:-""}"
   430        logVerbosity: ${CCM_LOG_VERBOSITY:-4}
   431        replicas: ${CCM_COUNT:-1}
   432        enableDynamicReloading: ${ENABLE_DYNAMIC_RELOADING:-false}
   433      cloudNodeManager:
   434        imageName: "${CNM_IMAGE_NAME:-""}"
   435        imageRepository: "${IMAGE_REGISTRY:-""}"
   436        imageTag: "${IMAGE_TAG_CNM:-""}"