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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid" : "AllowTanzuServiceMeshPermissions", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "route53:ListHostedZones", | |
| "route53:ListHostedZonesByName", | |
| "route53:ListResourceRecordSets", |
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
| #@ load("@ytt:overlay", "overlay") | |
| #@ load("@ytt:data", "data") | |
| #@ load("@ytt:yaml", "yaml") | |
| #@overlay/match by=overlay.subset({"kind":"Secret","metadata":{"annotations":{"tkg.tanzu.vmware.com/addon-type": "cni/antrea"}}}) | |
| --- | |
| apiVersion: v1 | |
| kind: Secret | |
| #@ if data.values.ANTREA_VXLAN: |
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
| #comma seperated pairs using = between key and value | |
| TAGS: "test=test,test2=test5" |
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
| #! add these values to your cluster config | |
| #!custom subnets to use for LB placement | |
| LB_SUBNETS: "subnet-xxxxxx,subnet-xxxxx" | |
| #! set api LB to internal | |
| LB_INTERNAL: true |
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 |
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
| #! add these values to your cluster config | |
| #!custom subnets to use for LB placement | |
| LB_SUBNETS: "subnet-xxxxxx,subnet-xxxxx" | |
| #! set api LB to internal | |
| LB_INTERNAL: true |
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
| #@data/values | |
| #@overlay/match-child-defaults missing_ok=True | |
| --- | |
| infrastructure_provider: "vsphere" | |
| contour: | |
| image: | |
| repository: projects.registry.vmware.com/tkg | |
| envoy: | |
| image: | |
| repository: projects.registry.vmware.com/tkg |
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
| metrics: | |
| enabled: true | |
| exporter: | |
| podAnnotations: | |
| prometheus.io/port: 8001 | |
| prometheus.io/scrape: true | |
| core: | |
| podAnnotations: | |
| prometheus.io/port: 8001 | |
| prometheus.io/scrape: true |
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
| type: | |
| kind: Cluster | |
| package: vmware.tanzu.manage.v1alpha1.cluster | |
| version: v1alpha1 | |
| fullName: | |
| managementClusterName: "seti-labs" | |
| name: cluster-cli | |
| provisionerName: "lab" | |
| meta: | |
| labels: null |
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
| export APISERVER=$(kubectl config view --minify | grep server | cut -f 2- -d ":" | tr -d " ") | |
| APISERVERNOHTTPS=$(echo $APISERVER | cut -c 9-) | |
| FPRINT=$(openssl s_client -connect $APISERVERNOHTTPS < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin) | |
| export FINGERPRINT=$(echo $FPRINT | cut -c 20-) | |
| TOKENNAME=$(kubectl -n kube-system get serviceaccount/dev-admin -o jsonpath='{.secrets[0].name}') | |
| export TOKEN=$(kubectl -n kube-system get secret $TOKENNAME -o jsonpath='{.data.token}'| base64 --decode) |