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
| FROM vmwarecmbu/k8s-ci-container | |
| RUN apt-get update && apt-get install -y git jq && \ | |
| curl -LO https://vmware.bintray.com/tmc/0.2.0-001dbc95/linux/x64/tmc && \ | |
| chmod +x ./tmc && \ | |
| mv ./tmc /usr/local/bin/tmc |
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
| #!/bin/bash | |
| ###Create a runonce script for re-exec cloud-init. ### | |
| ###System Update### | |
| sudo apt-get update && sudo apt-get -y upgrade | |
| # ###install cloud-init. ### | |
| sudo apt-get -y install cloud-init | |
| # ###install perl ### | |
| sudo apt-get -y install perl |
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) |
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
| 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
| #@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
| #! 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
| #comma seperated pairs using = between key and value | |
| TAGS: "test=test,test2=test5" |