sigs.k8s.io/cluster-api-provider-azure@v1.17.0/test/e2e/data/infrastructure-azure/v1beta1/cluster-template-upgrades.yaml (about)

     1  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
     2  kind: KubeadmConfig
     3  metadata:
     4    name: ${CLUSTER_NAME}-mp-0
     5    namespace: default
     6  spec:
     7    files:
     8    - contentFrom:
     9        secret:
    10          key: worker-node-azure.json
    11          name: ${CLUSTER_NAME}-mp-0-azure-json
    12      owner: root:root
    13      path: /etc/kubernetes/azure.json
    14      permissions: "0644"
    15    joinConfiguration:
    16      nodeRegistration:
    17        kubeletExtraArgs:
    18          cloud-provider: external
    19        name: '{{ ds.meta_data["local_hostname"] }}'
    20  ---
    21  apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    22  kind: KubeadmConfigTemplate
    23  metadata:
    24    name: ${CLUSTER_NAME}-md-0
    25    namespace: default
    26  spec:
    27    template:
    28      spec:
    29        files:
    30        - contentFrom:
    31            secret:
    32              key: worker-node-azure.json
    33              name: ${CLUSTER_NAME}-md-0-azure-json
    34          owner: root:root
    35          path: /etc/kubernetes/azure.json
    36          permissions: "0644"
    37        joinConfiguration:
    38          nodeRegistration:
    39            kubeletExtraArgs:
    40              cloud-provider: external
    41            name: '{{ ds.meta_data["local_hostname"] }}'
    42  ---
    43  apiVersion: cluster.x-k8s.io/v1beta1
    44  kind: Cluster
    45  metadata:
    46    name: ${CLUSTER_NAME}
    47    namespace: default
    48  spec:
    49    clusterNetwork:
    50      pods:
    51        cidrBlocks:
    52        - 192.168.0.0/16
    53    controlPlaneRef:
    54      apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    55      kind: KubeadmControlPlane
    56      name: ${CLUSTER_NAME}-control-plane
    57    infrastructureRef:
    58      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    59      kind: AzureCluster
    60      name: ${CLUSTER_NAME}
    61  ---
    62  apiVersion: cluster.x-k8s.io/v1beta1
    63  kind: MachineDeployment
    64  metadata:
    65    name: ${CLUSTER_NAME}-md-0
    66    namespace: default
    67  spec:
    68    clusterName: ${CLUSTER_NAME}
    69    replicas: ${WORKER_MACHINE_COUNT}
    70    selector:
    71      matchLabels: null
    72    template:
    73      spec:
    74        bootstrap:
    75          configRef:
    76            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    77            kind: KubeadmConfigTemplate
    78            name: ${CLUSTER_NAME}-md-0
    79        clusterName: ${CLUSTER_NAME}
    80        infrastructureRef:
    81          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    82          kind: AzureMachineTemplate
    83          name: ${CLUSTER_NAME}-md-0
    84        version: ${KUBERNETES_VERSION}
    85  ---
    86  apiVersion: cluster.x-k8s.io/v1beta1
    87  kind: MachinePool
    88  metadata:
    89    name: ${CLUSTER_NAME}-mp-0
    90    namespace: default
    91  spec:
    92    clusterName: ${CLUSTER_NAME}
    93    replicas: ${WORKER_MACHINE_COUNT}
    94    template:
    95      spec:
    96        bootstrap:
    97          configRef:
    98            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    99            kind: KubeadmConfig
   100            name: ${CLUSTER_NAME}-mp-0
   101        clusterName: ${CLUSTER_NAME}
   102        infrastructureRef:
   103          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   104          kind: AzureMachinePool
   105          name: ${CLUSTER_NAME}-mp-0
   106        version: ${KUBERNETES_VERSION}
   107  ---
   108  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
   109  kind: KubeadmControlPlane
   110  metadata:
   111    labels:
   112      cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
   113    name: ${CLUSTER_NAME}-control-plane
   114  spec:
   115    kubeadmConfigSpec:
   116      clusterConfiguration:
   117        apiServer:
   118          extraArgs:
   119            cloud-provider: external
   120          extraVolumes:
   121          - hostPath: /etc/kubernetes/azure.json
   122            mountPath: /etc/kubernetes/azure.json
   123            name: cloud-config
   124            readOnly: true
   125          timeoutForControlPlane: 20m
   126        controllerManager:
   127          extraArgs:
   128            allocate-node-cidrs: "false"
   129            cloud-provider: external
   130            cluster-name: ${CLUSTER_NAME}
   131          extraVolumes:
   132          - hostPath: /etc/kubernetes/azure.json
   133            mountPath: /etc/kubernetes/azure.json
   134            name: cloud-config
   135            readOnly: true
   136        etcd:
   137          local:
   138            dataDir: /var/lib/etcddisk/etcd
   139      diskSetup:
   140        filesystems:
   141        - device: /dev/disk/azure/scsi1/lun0
   142          extraOpts:
   143          - -E
   144          - lazy_itable_init=1,lazy_journal_init=1
   145          filesystem: ext4
   146          label: etcd_disk
   147        - device: ephemeral0.1
   148          filesystem: ext4
   149          label: ephemeral0
   150          replaceFS: ntfs
   151        partitions:
   152        - device: /dev/disk/azure/scsi1/lun0
   153          layout: true
   154          overwrite: false
   155          tableType: gpt
   156      files:
   157      - contentFrom:
   158          secret:
   159            key: control-plane-azure.json
   160            name: ${CLUSTER_NAME}-control-plane-azure-json
   161        owner: root:root
   162        path: /etc/kubernetes/azure.json
   163        permissions: "0644"
   164      initConfiguration:
   165        nodeRegistration:
   166          kubeletExtraArgs:
   167            cloud-provider: external
   168          name: '{{ ds.meta_data["local_hostname"] }}'
   169      joinConfiguration:
   170        nodeRegistration:
   171          kubeletExtraArgs:
   172            cloud-provider: external
   173          name: '{{ ds.meta_data["local_hostname"] }}'
   174      mounts:
   175      - - LABEL=etcd_disk
   176        - /var/lib/etcddisk
   177    machineTemplate:
   178      infrastructureRef:
   179        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   180        kind: AzureMachineTemplate
   181        name: ${CLUSTER_NAME}-control-plane
   182    replicas: ${CONTROL_PLANE_MACHINE_COUNT}
   183    version: ${KUBERNETES_VERSION}
   184  ---
   185  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   186  kind: AzureCluster
   187  metadata:
   188    name: ${CLUSTER_NAME}
   189  spec:
   190    additionalTags:
   191      creationTimestamp: ${TIMESTAMP}
   192      jobName: ${JOB_NAME}
   193    identityRef:
   194      apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   195      kind: AzureClusterIdentity
   196      name: ${CLUSTER_IDENTITY_NAME}
   197    location: ${AZURE_LOCATION}
   198    networkSpec:
   199      vnet:
   200        name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet}
   201    resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}}
   202    subscriptionID: ${AZURE_SUBSCRIPTION_ID}
   203  ---
   204  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   205  kind: AzureClusterIdentity
   206  metadata:
   207    labels:
   208      clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
   209    name: ${CLUSTER_IDENTITY_NAME}
   210  spec:
   211    allowedNamespaces: {}
   212    clientID: ${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY}
   213    tenantID: ${AZURE_TENANT_ID}
   214    type: ${CLUSTER_IDENTITY_TYPE:=WorkloadIdentity}
   215  ---
   216  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   217  kind: AzureMachinePool
   218  metadata:
   219    name: ${CLUSTER_NAME}-mp-0
   220    namespace: default
   221  spec:
   222    identity: SystemAssigned
   223    location: ${AZURE_LOCATION}
   224    template:
   225      osDisk:
   226        diskSizeGB: 30
   227        managedDisk:
   228          storageAccountType: Premium_LRS
   229        osType: Linux
   230      sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   231      vmSize: ${AZURE_NODE_MACHINE_TYPE}
   232  ---
   233  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   234  kind: AzureMachineTemplate
   235  metadata:
   236    name: ${CLUSTER_NAME}-control-plane
   237    namespace: default
   238  spec:
   239    template:
   240      spec:
   241        dataDisks:
   242        - diskSizeGB: 256
   243          lun: 0
   244          nameSuffix: etcddisk
   245        osDisk:
   246          diskSizeGB: 128
   247          osType: Linux
   248        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   249        vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE}
   250  ---
   251  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
   252  kind: AzureMachineTemplate
   253  metadata:
   254    name: ${CLUSTER_NAME}-md-0
   255    namespace: default
   256  spec:
   257    template:
   258      spec:
   259        osDisk:
   260          diskSizeGB: 128
   261          managedDisk:
   262            storageAccountType: Premium_LRS
   263          osType: Linux
   264        sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
   265        vmSize: ${AZURE_NODE_MACHINE_TYPE}