github.com/vmware/go-vcloud-director/v2@v2.24.0/govcd/test-resources/capiYaml.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: MachineHealthCheck 3 metadata: 4 name: "test1" 5 namespace: "test1-ns" 6 labels: 7 clusterctl.cluster.x-k8s.io: "" 8 clusterctl.cluster.x-k8s.io/move: "" 9 spec: 10 clusterName: "test1" 11 maxUnhealthy: "100%" 12 nodeStartupTimeout: "900s" 13 selector: 14 matchLabels: 15 cluster.x-k8s.io/cluster-name: "test1" 16 unhealthyConditions: 17 - type: Ready 18 status: Unknown 19 timeout: "200s" 20 - type: Ready 21 status: "False" 22 timeout: "300s" 23 --- 24 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 25 kind: VCDMachineTemplate 26 metadata: 27 name: "node-pool-1" 28 namespace: "test1-ns" 29 spec: 30 template: 31 spec: 32 catalog: "tkgm_catalog" 33 template: "ubuntu-2004-kube-v1.25.7+vmware.2-tkg.1-8a74b9f12e488c54605b3537acb683bc" 34 sizingPolicy: "TKG small" 35 placementPolicy: "" 36 storageProfile: "*" 37 diskSize: "20Gi" 38 enableNvidiaGPU: false 39 --- 40 apiVersion: cluster.x-k8s.io/v1beta1 41 kind: MachineDeployment 42 metadata: 43 name: "node-pool-1" 44 namespace: "test1-ns" 45 spec: 46 clusterName: "test1" 47 replicas: 1 48 selector: 49 matchLabels: null 50 template: 51 spec: 52 bootstrap: 53 configRef: 54 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 55 kind: KubeadmConfigTemplate 56 name: "test1-kct" 57 namespace: "test1-ns" 58 clusterName: "test1" 59 infrastructureRef: 60 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 61 kind: VCDMachineTemplate 62 name: "node-pool-1" 63 namespace: "test1-ns" 64 version: "v1.25.7+vmware.2" 65 --- 66 67 apiVersion: cluster.x-k8s.io/v1beta1 68 kind: Cluster 69 metadata: 70 name: "test1" 71 namespace: "test1-ns" 72 labels: 73 cluster-role.tkg.tanzu.vmware.com/management: "" 74 tanzuKubernetesRelease: "v1.25.7---vmware.2-tkg.1" 75 tkg.tanzu.vmware.com/cluster-name: "test1" 76 annotations: 77 osInfo: "ubuntu,20.04,amd64" 78 TKGVERSION: "v2.2.0" 79 spec: 80 clusterNetwork: 81 pods: 82 cidrBlocks: 83 - "100.96.0.0/11" 84 serviceDomain: cluster.local 85 services: 86 cidrBlocks: 87 - "100.64.0.0/13" 88 controlPlaneRef: 89 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 90 kind: KubeadmControlPlane 91 name: "test1-control-plane-node-pool" 92 namespace: "test1-ns" 93 infrastructureRef: 94 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 95 kind: VCDCluster 96 name: "test1" 97 namespace: "test1-ns" 98 --- 99 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 100 kind: VCDCluster 101 metadata: 102 name: "test1" 103 namespace: "test1-ns" 104 spec: 105 site: "https://www.my-vcd-instance.com" 106 org: "tenant_org" 107 ovdc: "tenant_vdc" 108 ovdcNetwork: "tenant_net_routed" 109 useAsManagementCluster: false 110 userContext: 111 secretRef: 112 name: capi-user-credentials 113 namespace: "test1-ns" 114 --- 115 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 116 kind: VCDMachineTemplate 117 metadata: 118 name: "test1-control-plane-node-pool" 119 namespace: "test1-ns" 120 spec: 121 template: 122 spec: 123 catalog: "tkgm_catalog" 124 template: "ubuntu-2004-kube-v1.25.7+vmware.2-tkg.1-8a74b9f12e488c54605b3537acb683bc" 125 sizingPolicy: "TKG small" 126 placementPolicy: "" 127 storageProfile: "*" 128 diskSize: 20Gi 129 --- 130 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 131 kind: KubeadmControlPlane 132 metadata: 133 name: "test1-control-plane-node-pool" 134 namespace: "test1-ns" 135 spec: 136 kubeadmConfigSpec: 137 preKubeadmCommands: 138 - mv /etc/ssl/certs/custom_certificate_*.crt /usr/local/share/ca-certificates && update-ca-certificates 139 clusterConfiguration: 140 apiServer: 141 certSANs: 142 - localhost 143 - 127.0.0.1 144 controllerManager: 145 extraArgs: 146 enable-hostpath-provisioner: "true" 147 dns: 148 imageRepository: "projects.registry.vmware.com/tkg" 149 imageTag: "v1.9.3_vmware.8" 150 etcd: 151 local: 152 imageRepository: "projects.registry.vmware.com/tkg" 153 imageTag: "v3.5.6_vmware.9" 154 imageRepository: "projects.registry.vmware.com/tkg" 155 users: 156 - name: root 157 sshAuthorizedKeys: 158 - "" 159 initConfiguration: 160 nodeRegistration: 161 criSocket: /run/containerd/containerd.sock 162 kubeletExtraArgs: 163 eviction-hard: nodefs.available<0%%,nodefs.inodesFree<0%%,imagefs.available<0%% 164 cloud-provider: external 165 joinConfiguration: 166 nodeRegistration: 167 criSocket: /run/containerd/containerd.sock 168 kubeletExtraArgs: 169 eviction-hard: nodefs.available<0%%,nodefs.inodesFree<0%%,imagefs.available<0%% 170 cloud-provider: external 171 machineTemplate: 172 infrastructureRef: 173 apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 174 kind: VCDMachineTemplate 175 name: "test1-control-plane-node-pool" 176 namespace: "test1-ns" 177 replicas: 1 178 version: "v1.25.7+vmware.2" 179 --- 180 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 181 kind: KubeadmConfigTemplate 182 metadata: 183 name: "test1-kct" 184 namespace: "test1-ns" 185 spec: 186 template: 187 spec: 188 users: 189 - name: root 190 sshAuthorizedKeys: 191 - "" 192 useExperimentalRetryJoin: true 193 preKubeadmCommands: 194 - mv /etc/ssl/certs/custom_certificate_*.crt /usr/local/share/ca-certificates && update-ca-certificates 195 joinConfiguration: 196 nodeRegistration: 197 criSocket: /run/containerd/containerd.sock 198 kubeletExtraArgs: 199 eviction-hard: nodefs.available<0%%,nodefs.inodesFree<0%%,imagefs.available<0%% 200 cloud-provider: external