In some Edge deployments, the internet is reachable through a proxy server for content filtering and security reasons. In such situations, the host must be configured to use a proxy server to register correctly and deploy to work.

To set up a proxy in the host image before deployment, perform the following steps:

Procedure

  1. Edit the ks.cfg in the root of the host image.
  2. Un-comment the lines starting from EC_BOOTSTRAP_CONFIG_FILE in the ks.cfg file.
  3. Edit the http/https and no_proxy lines under outbound_proxy to include your specific details.
  4. Optionally, edit the proxy_cert line to include the proxy server certificate for MITM proxies.

Example

EC_BOOTSTRAP_CONFIG_FILE="/vmfs/volumes/$DEST_DATASTORE/proxy-config.yaml"
 
cat <<EOT > $EC_BOOTSTRAP_CONFIG_FILE
apiVersion: ec.vmware.com/v1alpha1
kind: ECConfiguration
metadata:
  name: bootstrap-configuration
spec:
  outbound_proxy:
    http: "http://10.90.143.202:8080" # HTTP proxy server address
    https: "http://10.90.143.202:8080" # HTTPS proxy server address
    no_proxy: "localhost,127.0.0.0/8,10.0.0.0/8" # Exclude proxy server list
    proxy_cert:  "LS0tLS1CRUdJTiBD....." # Optional proxy server cert for MITM proxies
EOT