Git Product home page Git Product logo

squid-deploy's Introduction

TDP-TAP1.9-Bug-Bash

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.

Getting started

Prerequisites

  • Make sure you have kubectl access to the TAP 1.9 cluster
  • Make sure you have tanzu cli installed

Steps

  1. 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 cluster
    • delete_squid_proxy.sh: A script to delete the squid proxy from the K8s cluster
    • squid.conf: The configuration file for the squid proxy
    • README.md: The instructions for the bug bash
  1. Change directory to the repository
cd tdp-tap1.9-bug-bash
  1. Make all the scripts executable
chmod +x *.sh
  1. Deploy a squid proxy in the K8s cluster
./deploy_squid_proxy.sh
  1. Obtain the TDP pod name
kubectl get pods -n tap-gui
  1. Get a shell in the TDP pod
kubectl exec -it <pod-name> -n tap-gui -- /bin/sh
  1. 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
  1. Extract the tap-values.yaml file
tanzu package installed get tap --values-file-output tap-values.yaml -n tap-install
  1. 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.
  1. 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
  1. Confirm that the TDP package is reconciling
tanzu kubernetes package installed list -A
  1. Tail Squid proxy logs
kubectl exec -it <pod-name> -n proxy-ns -- /bin/sh
tail -f /var/log/squid/access.log
  1. 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
  1. Delete the squid proxy from the K8s cluster
./delete_squid_proxy.sh

Thank you for participating in the Bug Bash!

squid-deploy's People

Contributors

chinmayjatana avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.