Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Make target for proxy and deploy the defaut cluster without proxy #128

Open
k37y opened this issue Dec 21, 2024 · 0 comments
Open

Comments

@k37y
Copy link
Owner

k37y commented Dec 21, 2024

set -euo pipefail

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"

echo "Patching install-config.yaml file with proxy configuration ..."
cat << EOF >> ${SCRIPT_DIR}/install-config.yaml
proxy:
  httpProxy: http://proxy.ocp.onp.local:3128
  httpsProxy: http://proxy.ocp.onp.local:4128
  noProxy: onp.local,192.168.122.0/24,192.168.123.0/24,192.168.124.0/24,192.168.125.0/24,192.168.126.0/24,172.22.0.0/24
additionalTrustBundle: |
$(cat /opt/openshift-network-playground/proxy/certs/CA.pem | sed 's/^/    /')
EOF
echo "✔ Patched!"

echo "Copying install-config.yaml file to clusterconfigs directory ..."
cp ${SCRIPT_DIR}/install-config.yaml ${SCRIPT_DIR}/clusterconfigs/
echo "✔ Copied!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant