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
| AA:file1.zip | |
| BB:file2.tgz |
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
| 1. prepare var file | |
| $ cat > variables.yml << EOF | |
| --- | |
| deployment_name: concourse-v6 | |
| azs: | |
| - AZ3 | |
| - AZ2 | |
| - AZ1 | |
| network_name: services |
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 | |
| set -e | |
| # set -x | |
| # intall om | |
| echo "+++ installing om" | |
| curl -L -O https://github.com/pivotal-cf/om/releases/download/7.8.2/om-linux-amd64-7.8.2 | |
| chmod +x om-linux-amd64-7.8.2 | |
| cp om-linux-amd64-7.8.2 /usr/local/bin/om |
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 | |
| set -eu | |
| config_server_credentials=$(echo $VCAP_SERVICES | jq -r '.["p.config-server"][0].credentials') | |
| credhub_ref=$(echo ${config_server_credentials} | jq -r '."credhub-ref"') | |
| ## client_id, client_secret is not available as plain text when credhub integration is enabled | |
| # client_id=$(echo ${config_server_credentials}|jq -r '.client_id') | |
| # client_secret=$(echo ${config_server_credentials}|jq -r '.client_secret') | |
| # access_token_uri=$(echo ${config_server_credentials}|jq -r '.access_token_uri') |
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 | |
| SCRIPT_NAME=$(basename $0) | |
| usage() { | |
| echo "Usage:" | |
| echo " $SCRIPT_NAME --per-svc|--per-org" | |
| echo "" | |
| echo "Flags:" | |
| echo " --per-svc Print triple (org_name, space_name, service_instance_name) for every service offering." |
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
| This procedure is based on | |
| - slack discussion: https://vmware.slack.com/archives/CSZCCLW0P/p1642695822214400?thread_ts=1642667864.186000&cid=CSZCCLW0P | |
| - https://github.com/kubernetes-sigs/image-builder/blob/master/images/capi/hack/image-govc-cloudinit.sh | |
| - https://cloudinit.readthedocs.io/en/latest/topics/datasources/vmware.html | |
| (1) Authenticate govc CLI. | |
| (2) In vCenter UI, use TKG OVA template to create a VM. | |
| For example, I created test-vm from ova ubuntu-2004-kube-v1.22.9+vmware.1-tkg.1 |
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
| ## Doc: | |
| ## https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid-Integrated-Edition/1.14/tkgi/GUID-vsphere-cns.html#create-or-use-cns-block-volumes-8 | |
| ## https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/2.0/vmware-vsphere-csp-getting-started/GUID-B1AAA825-3441-46D3-877C-A6580D2097D1.html | |
| (1) sample storage class pointing to vSAN datastore | |
| cat > storage-class.yml << EOF | |
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: |
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
| ## This sample app is from NCP (NSX Container Plug-in) project. | |
| ## https://gitlab.eng.vmware.com/core-build/nsx-ujo/-/tree/master/doc/source/devref/samples/ingress | |
| ## NCP ingress Doc: | |
| ## https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.2/ncp-kubernetes/GUID-E03D6EE5-9C6C-457F-AD81-25CF2056F4D8.html | |
| (1) tea app | |
| cat > tea-svc.yaml << EOF | |
| apiVersion: v1 |
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
| (1) create test namespace | |
| kubectl create namespace sriov-dpdk-test | |
| (2) Identify two worker nodes with available SR-IOV VFs; schedule a receiver pod and transmitter pod to the two nodes | |
| # ubuntu:jammy packages dpdk 21.11.1 | |
| cat > test-pod-receiver.yaml << EOF |
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
| # This procedure is to address the issue in the following KB article, before TAS patch is released | |
| # https://community.pivotal.io/s/article/Apps-stop-running-after-a-deploy-when-using-dynamic-ASGs-with-icmp-any-rule | |
| (1) download the bosh release containing fix | |
| $ wget -L https://github.com/cloudfoundry/silk-release/releases/download/3.5.0/silk-3.5.0.tgz | |
| $ wget -L https://github.com/cloudfoundry/cf-networking-release/releases/download/3.5.0/cf-networking-3.5.0.tgz | |
NewerOlder