Enabling proxies in ECS and OCP environment

Depending on your cluster platform, whether it is RKE2 for Embedded Container Service (ECS) clusters or OpenShift Container Platform (OCP), specific configurations and deployment methods apply.

  1. Open Cloudera Manager > Clusters > Configuration > Configuration Search.
  2. Enter the name of the configuration you are looking for: ECS Server Environment Advanced Configuration.
    With the help of the Settings menu, include the environment variables in uppercase in the ECS Server Environment Advanced Configuration snippet (Safety Valve) for config.yaml to configure the CONTAINERD_HTTP_PROXY, CONTAINERD_HTTPS_PROXY and CONTAINERD_NO_PROXY.
    Figure 1. Environment variable settings in ECS Server Environment Advanced Configuration

    Example:

    CONTAINERD_HTTP_PROXY=http://proxy.example.com:8080

    CONTAINERD_HTTPS_PROXY=http://proxy.example.com:8080

    CONTAINERD_NO_PROXY=noproxy.address.com

  3. Enter the name of the configuration you are looking for: ECS Agent Environment Advanced Configuration.

    With the help of the Settings menu, include uppercase environment variables in the ECS Agent Environment Advanced Configuration snippet (Safety Valve) for config.yaml to configure the CONTAINERD_HTTP_PROXY, CONTAINERD_HTTPS_PROXY and CONTAINERD_NO_PROXY.
    Figure 2. Environment variable settings in ECS Agent Environment Advanced Configuration

    Example:

    CONTAINERD_HTTP_PROXY=http://proxy.example.com:8080

    CONTAINERD_HTTPS_PROXY=http://proxy.example.com:8080

    CONTAINERD_NO_PROXY=noproxy.address.com

  4. Restart the ECS by selecting Cloudera Manager > Clusters > <<cluster name>> > Actions > Rolling Restart.
    Figure 3. Rolling Restart

To enable a cluster-wide proxy, follow the instructions in the OpenShift documentation: https://docs.openshift.com/container-platform/4.13/networking/enable-cluster-wide-proxy.html