Skip to content

Instantly share code, notes, and snippets.

@bryanl
Created August 26, 2020 15:04

Revisions

  1. bryanl created this gist Aug 26, 2020.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    apiVersion: run.tanzu.vmware.com/v1alpha1
    kind: TanzuKubernetesCluster
    metadata:
    name: ${CLUSTER_NAME}
    namespace: ${NAMESPACE}
    spec:
    distribution:
    version: ${KUBERNETES_VERSION}
    settings:
    network:
    cni:
    name: calico
    pods:
    cidrBlocks:
    - ${CLUSTER_CIDR} # CIDR block used by Calico
    serviceDomain: ${SERVICE_DOMAIN}
    services:
    cidrBlocks:
    - ${SERVICE_CIDR} # CIDR block used by Calico
    storage:
    classes:
    [${STORAGE_CLASSES}]
    defaultClass: "${DEFAULT_STORAGE_CLASS}"

    topology:
    controlPlane:
    class: ${CONTROL_PLANE_VM_CLASS}
    count: ${CONTROL_PLANE_MACHINE_COUNT}
    storageClass: ${CONTROL_PLANE_STORAGE_CLASS}
    workers:
    class: ${WORKER_VM_CLASS}
    count: ${WORKER_MACHINE_COUNT}
    storageClass: ${WORKER_STORAGE_CLASS}