github.com/vmware/go-vcloud-director/v2@v2.24.0/govcd/cse/4.1/capiyaml_workerpool.tmpl (about)

     1  apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
     2  kind: VCDMachineTemplate
     3  metadata:
     4    name: "{{.NodePoolName}}"
     5    namespace: "{{.TargetNamespace}}"
     6  spec:
     7    template:
     8      spec:
     9        catalog: "{{.Catalog}}"
    10        template: "{{.VAppTemplate}}"
    11        sizingPolicy: "{{.NodePoolSizingPolicy}}"
    12        placementPolicy: "{{.NodePoolPlacementPolicy}}"
    13        storageProfile: "{{.NodePoolStorageProfile}}"
    14        diskSize: "{{.NodePoolDiskSize}}"
    15        enableNvidiaGPU: {{.NodePoolEnableGpu}}
    16  ---
    17  apiVersion: cluster.x-k8s.io/v1beta1
    18  kind: MachineDeployment
    19  metadata:
    20    name: "{{.NodePoolName}}"
    21    namespace: "{{.TargetNamespace}}"
    22  spec:
    23    clusterName: "{{.ClusterName}}"
    24    replicas: {{.NodePoolMachineCount}}
    25    selector:
    26      matchLabels: null
    27    template:
    28      spec:
    29        bootstrap:
    30          configRef:
    31            apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
    32            kind: KubeadmConfigTemplate
    33            name: "{{.ClusterName}}-kct"
    34            namespace: "{{.TargetNamespace}}"
    35        clusterName: "{{.ClusterName}}"
    36        infrastructureRef:
    37          apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
    38          kind: VCDMachineTemplate
    39          name: "{{.NodePoolName}}"
    40          namespace: "{{.TargetNamespace}}"
    41        version: "{{.KubernetesVersion}}"