Skip to content

Instantly share code, notes, and snippets.

@bryanl
Created August 26, 2020 15:04
Show Gist options
  • Save bryanl/8e0b16bfddc3111248bf3ea8f8bdbd39 to your computer and use it in GitHub Desktop.
Save bryanl/8e0b16bfddc3111248bf3ea8f8bdbd39 to your computer and use it in GitHub Desktop.
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment