Skip to content

Instantly share code, notes, and snippets.

@berinle
Created November 3, 2022 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berinle/da0009158b32b2e065fb3c505dbb2a73 to your computer and use it in GitHub Desktop.
Save berinle/da0009158b32b2e065fb3c505dbb2a73 to your computer and use it in GitHub Desktop.
sample tkg cluster
apiVersion: run.tanzu.vmware.com/v1alpha1 #TKGS API endpoint
kind: TanzuKubernetesCluster #required parameter
metadata:
name: test #cluster name, user defined
namespace: demo
spec:
distribution:
version: v1.20 #Resolves to the latest v1.18 image
topology:
controlPlane:
count: 1 #number of control plane nodes
class: best-effort-small #vmclass for control plane nodes
storageClass: tanzu
workers:
count: 3 #number of worker nodes
class: best-effort-small #vmclass for worker nodes
storageClass: tanzu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment