Skip to content

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

@k37y

Description

@k37y
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!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions