Created
September 8, 2021 23:06
-
-
Save warroyo/827db5a3edfe36ffb13a5c8440f7ace0 to your computer and use it in GitHub Desktop.
1 az ha tkg cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # place this file in ~/.tanzu/tkg/providers/infrastructure-aws/v0.6.4/cluster-template-definition-ha1az.yaml | |
| apiVersion: run.tanzu.vmware.com/v1alpha1 | |
| kind: TemplateDefinition | |
| spec: | |
| paths: | |
| - path: providers/infrastructure-aws/v0.6.4/ytt | |
| - path: providers/infrastructure-aws/ytt | |
| - path: providers/ytt | |
| - path: bom | |
| filemark: text-plain | |
| - path: providers/config_default.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! place this file in ~/.tanzu/tkg/providers/ytt/04_user_customizations/ha1az.yaml | |
| #@ load("@ytt:overlay", "overlay") | |
| #@ load("@ytt:data", "data") | |
| #@ if data.values.CLUSTER_PLAN == "ha1az": | |
| #@overlay/match by=overlay.subset({"kind":"KubeadmControlPlane"}) | |
| --- | |
| apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 | |
| kind: KubeadmControlPlane | |
| spec: | |
| replicas: 3 | |
| #@overlay/match by=overlay.subset({"kind":"MachineDeployment"}) | |
| --- | |
| apiVersion: cluster.x-k8s.io/v1alpha3 | |
| kind: MachineDeployment | |
| spec: | |
| replicas: 3 | |
| #@ end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment