To create a native cluster using VMware Cloud Director Container Service Extension client, it is necessary to generate a cluster configuration file and use the cluster apply command.

Procedure

  1. To generate the native cluster configuration file, open vcd-cse and enter the following command:
    vcd cse cluster apply -s --native

    The following code is an example of a native cluster configuration yaml file:

    apiVersion: cse.vmware.com/v2.1
    kind: native
    metadata:
      name: native1
      orgName: org1
      virtualDataCenterName: ovdc1
      site: https://vcd.com
    spec:
      distribution:
        templateName: ubuntu-20.04_k8-1.23_weave-2.8.1
        templateRevision: 1
      settings:
        network:
          expose: true
        ovdcNetwork: ovdc1_nw
        sshKey: 'ssh-key'
        rollbackOnFailure: true
      topology:
        controlPlane:
          count: 1
          storageProfile: '*'
        workers:
          count: 1
          storageProfile: '*'
        nfs:
          count: 0
          storageProfile: '*'
    
  2. To create a native cluster, enter the following command in vcd cse:
    vcd cse cluster apply <native_cluster.yaml>

Results

Your native cluster is created.

If you want to scale up or down workers, scale up NFS nodes, and upgrade a cluster, you can use the following commands in vcd cse:
vcd cse cluster apply <resize_cluster.yaml> (resizes the specification on the resource specified). 
vcd cse cluster apply <upgrade_cluster.yaml> (upgrades the cluster to match the user specified template and revision)