For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Install behind an egress proxy
Configure the Solo UI backend to reach your identity provider through a forward proxy.
Some clusters have no direct route to the internet, and reach external endpoints only through a forward proxy. In this topology, the Solo UI backend must send the calls that it makes to your identity provider (IdP) through the proxy, and must continue to reach the Kubernetes API server and in-cluster Services directly.
The Solo UI backend reads the standard HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables when it makes OpenID Connect (OIDC) discovery, JSON Web Key Set (JWKS), and token introspection calls to your IdP.
Important
Proxy support for these calls requires Solo UI version 0.5.8 or later. In earlier versions, the IdP calls were always direct, so the Solo UI failed to start in a proxied cluster even when you set the proxy variables.
Note
This guide covers a cluster that reaches the internet through a proxy. To install in a cluster with no internet route at all, mirror the images to a private registry first. For the steps, see Install in air-gapped environments.
Before you begin
Install the Solo UI at version 0.5.8 or later, and configure an external IdP. For the options, see Identity providers.
Record the URL of your forward proxy, including the scheme and port, such as
http://proxy.example.com:3128.Confirm that your proxy allows the hostname of your IdP. The Solo UI cannot start until the OIDC discovery call succeeds.
Save the Solo UI version and your proxy URL in environment variables.
export SOLO_UI_VERSION=0.5.8 export PROXY_URL=http://proxy.example.com:3128
Step 1: Build the no-proxy list
NO_PROXY names the destinations that must bypass the proxy, as hostnames, domain suffixes, IP addresses, or CIDR ranges. An incomplete list is the most common cause of a failed installation, because a pod that sends its Kubernetes API traffic to an external proxy cannot read its own configuration.
Save the ClusterIP of the Kubernetes API server in an environment variable.
export API_SERVER_IP=$(kubectl get service kubernetes -n default -o jsonpath='{.spec.clusterIP}') echo $API_SERVER_IPExample output:
10.96.0.1Build the
NO_PROXYvalue from the following entries, separated by commas.localhost,127.0.0.1,.svc,.svc.cluster.local,.cluster.local,${API_SERVER_IP}Entry Why it must bypass the proxy localhost,127.0.0.1The containers in the uipod call each other over the pod network loopback. The built-in identity provider runs in that pod, so its OIDC calls stay pod-local..svc,.svc.cluster.local,.cluster.localIn-cluster Service DNS names, such as the ClickHouse and telemetry collector endpoints. ${API_SERVER_IP}The Kubernetes API server. A pod reaches it at an IP address, not a DNS name, and a NO_PROXYsuffix entry never matches an IP address, so.svcdoes not cover the API server. Omit this entry and every Kubernetes API call goes to the proxy. To bypass every ClusterIP rather than only the API server, put your cluster’s service CIDR here instead, such as10.96.0.0/12.Add the address of any other internal endpoint that the Solo UI must reach directly, such as an external ClickHouse instance.
Step 2: Set proxy variables on the Solo UI backend
The management chart sets environment variables on the Solo UI backend container through the ui.backend.extraEnvs value. The value is a map that is keyed by the variable name, and each entry holds the rest of the environment variable definition.
Create a values file with the proxy variables. Replace the proxy URL and the
NO_PROXYvalue with your own.cat << EOF > proxy-values.yaml ui: backend: extraEnvs: HTTP_PROXY: value: "${PROXY_URL}" HTTPS_PROXY: value: "${PROXY_URL}" NO_PROXY: value: "localhost,127.0.0.1,.svc,.svc.cluster.local,.cluster.local,${API_SERVER_IP}" EOFField Description ui.backend.extraEnvs.<NAME>The name of the environment variable to set on the Solo UI backend container. ui.backend.extraEnvs.<NAME>.valueThe value of the variable, as a quoted string. The valuekey is required. The chart renders the contents of this entry directly into the container environment variable definition, so a bare string in place ofvalueproduces invalid YAML and the installation fails to render.Tip
To read a proxy URL that contains credentials from a Secret instead, replace
valuewith avalueFromblock. The chart renders whichever keys the entry holds.Upgrade the management release with the values file.
helm upgrade -i solo-management \ oci://us-docker.pkg.dev/solo-public/solo-enterprise-helm/charts/management \ -n solo-enterprise \ --version ${SOLO_UI_VERSION} \ --reuse-values \ --values proxy-values.yamlWarning
Set these variables in a values file, not with
--set. Helm treats a comma in a--setvalue as a separator between values, so a comma-separatedNO_PROXYfails with an error such askey "local" has no value.Verify that the
uipod restarts and reaches aRunningstatus. The backend repeats the OIDC discovery call at startup, so a proxy that refuses the connection keeps the pod out of the ready state.kubectl get pods -n solo-enterprise -l app=solo-enterprise-ui
Step 3: Verify that calls use the proxy
Confirm that the backend container holds the variables that you set.
kubectl exec -n solo-enterprise deploy/solo-enterprise-ui -c ui-backend -- env | grep -i proxyExample output:
HTTP_PROXY=http://proxy.example.com:3128 HTTPS_PROXY=http://proxy.example.com:3128 NO_PROXY=localhost,127.0.0.1,.svc,.svc.cluster.local,.cluster.local,10.96.0.1Check the Solo UI backend logs for a successful IdP discovery call. A backend that cannot reach the IdP logs a connection error and retries.
kubectl logs -n solo-enterprise deploy/solo-enterprise-ui -c ui-backend | grep -i oidcTo confirm that the traffic reaches the proxy rather than going directly, point
HTTPS_PROXYat an unreachable address and restart the pod. The discovery call should now fail. A call that still succeeds is direct, which means that the variables did not reach the container.Log in to the Solo UI. A successful login exercises the discovery, JWKS, and token endpoints of your IdP through the proxy.
Considerations
- The proxy environment is read once, when the process starts. A change to any of these variables takes effect only after the pod restarts. Helm restarts the affected pods when the values change.
- These variables cover the IdP calls of the Solo UI backend. In a multicluster installation, the relay reaches the management plane over the tunnel, which these variables do not configure. Give the relay a route to the tunnel address that does not depend on the proxy.
- A proxy that terminates TLS presents its own certificate. If your proxy re-signs traffic with an internal certificate authority, mount that certificate authority bundle into the container and point the runtime at it, or exempt the IdP hostname from interception.
- Image pulls do not use these variables. The container runtime pulls images, not the Solo UI, so configure the proxy on your nodes, or mirror the images to a registry that the cluster can reach. For the steps, see Install in air-gapped environments.