Welcome to the Bug Bash for TDP in TAP 1.9! This scenario will guide you through the process of testing TDP using an HTTP/HTTPS proxy.
- Make sure you have kubectl access to the TAP 1.9 cluster
- Make sure you have tanzu cli installed
- Clone the repository
git clone [email protected]:backstage-oss/tdp-tap1.9-bug-bash.git
- You will find the following files in the repository:
deploy_squid_proxy.sh
: A script to deploy a squid proxy in the K8s clusterdelete_squid_proxy.sh
: A script to delete the squid proxy from the K8s clustersquid.conf
: The configuration file for the squid proxyREADME.md
: The instructions for the bug bash
- Change directory to the repository
cd tdp-tap1.9-bug-bash
- Make all the scripts executable
chmod +x *.sh
- Deploy a squid proxy in the K8s cluster
./deploy_squid_proxy.sh
- Obtain the TDP pod name
kubectl get pods -n tap-gui
- Get a shell in the TDP pod
kubectl exec -it <pod-name> -n tap-gui -- /bin/sh
- Test that the TDP pod can access the internet
curl -x http://squid-proxy-service.proxy-ns.svc.cluster.local:3128 https://raw.githubusercontent.com/waldirmontoya25/tanzu-java-web-app/main/catalog/catalog-info.yaml
- Extract the tap-values.yaml file
tanzu package installed get tap --values-file-output tap-values.yaml -n tap-install
- Configure TDP to use the squid proxy
tap_gui:
# The HTTP_PROXY environment variable is used to specify the proxy server for both HTTP and HTTPS requests.
HTTP_PROXY: http://squid-proxy-service.proxy-ns.svc.cluster.local:3128
# NO_PROXY: 'bar.com,baz.com' # The NO_PROXY environment variable is used to specify a comma-separated list of domain extensions for which the proxy server should not be used.
- Update the TDP installation with the new configuration
tanzu package installed update tap -p tap.tanzu.vmware.com -n tap-install --values-file tap-values.yaml
- Confirm that the TDP package is reconciling
tanzu kubernetes package installed list -A
- Tail Squid proxy logs
kubectl exec -it <pod-name> -n proxy-ns -- /bin/sh
tail -f /var/log/squid/access.log
- Test that TDP can access the internet using the squid proxy
- Register an entity located in github in TDP
- Deploy a workload using an accelerator located in github
- Test domain excemptions if possible. For example, you can add "acc-server.accelerator-system.svc.cluster.local" to NO_PROXY
- Delete the squid proxy from the K8s cluster
./delete_squid_proxy.sh