Skip to content

Instantly share code, notes, and snippets.

@MAHDTech
Last active April 1, 2022 00:22
Show Gist options
  • Save MAHDTech/03806be9b5109e1bdd2d28e5d5d1ac10 to your computer and use it in GitHub Desktop.
Save MAHDTech/03806be9b5109e1bdd2d28e5d5d1ac10 to your computer and use it in GitHub Desktop.
KIND config for Tanzu Community Edition
ClusterName: tce
KubeconfigPath: ""
ExistingClusterKubeconfig: ""
NodeImage: ""
Provider: kind
Cni: antrea
CniConfiguration: {}
PodCidr: 10.244.0.0/16
ServiceCidr: 10.96.0.0/16
TkrLocation: projects.registry.vmware.com/tce/tkr:v1.21.5
AdditionalPackageRepos:
- projects.registry.vmware.com/tce/main:v0.11.0
PortsToForward: []
SkipPreflight: false
ControlPlaneNodeCount: "1"
WorkerNodeCount: "0"
ProviderConfiguration:
rawKindConfig: |
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
ipFamily: ipv4
# NOTE: Use the KinD bridge IP when running in a container.
#apiServerAddress: 172.18.0.1
apiServerPort: 6443
podSubnet: "10.244.0.0/16"
serviceSubnet: "10.96.0.0/12"
disableDefaultCNI: true
kubeProxyMode: "ipvs"
nodes:
- role: control-plane
image: projects.registry.vmware.com/tce/kind/node:v1.22.5
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
@MAHDTech
Copy link
Author

MAHDTech commented Apr 1, 2022

This can be run as follows.

NOTE: If running from within a container, update the API server address to match your local KinD bridge IP

tanzu unmanaged-cluster create --verbose 6 --config tce.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment