Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Install on OpenShift

Page as Markdown

Configure the security settings that Red Hat OpenShift security context constraints require.

Red Hat OpenShift admits pods through security context constraints (SCCs), which are stricter than the defaults that Solo Enterprise for agentgateway expects.

Note

If you already installed Solo Enterprise for agentgateway, follow the steps in this guide before you create any Gateway resources, so that the agentgateway proxies start with the security settings that OpenShift accepts.

About security context constraints

An SCC is an OpenShift policy that controls the security settings that a pod can request. By default, OpenShift runs every workload under the restricted-v2 SCC, which allocates each namespace a range of user IDs (UIDs) and assigns each pod a UID from that range. A workload that pins its own UID does not match the range, so admission rejects the pod.

The agentgateway proxy and two of the shared extensions pin a UID by default. The following table lists each default and the change that OpenShift requires.

WorkloadDefault that OpenShift rejectsChange
agentgateway proxy*Container runAsUser: 10101Remove runAsUser, and keep the pod security context
ext-auth-service †Pod runAsUser: 10101Remove the pod security context
redis, for the external cache †Container runAsUser: 999 and runAsNonRoot: trueRemove the container security context
rate-limiter †None. The defaults pin no UID.None required
waf-server †None. The defaults pin no UID.None required

* Agentgateway proxy: The proxy pod sets the net.ipv4.ip_unprivileged_port_start sysctl to 0, which lets the non-root proxy bind ports below 1024. The restricted-v2 SCC permits this sysctl, so change the container security context only. Do not remove the pod security context, and do not replace the sysctl with the NET_BIND_SERVICE capability.

† Shared extensions: Shared extensions such as the ext-auth-service and redis are configurable only with an EnterpriseAgentgatewayParameters that you attach to a GatewayClass. If you attach a resource that sets sharedExtensions to an individual Gateway, the controller refuses to reconcile the extensions and logs SharedExtensions can only be configured on EnterpriseAgentgatewayParameters that are attached to a GatewayClass. The Gateway still reports Accepted=True and Programmed=True, so check the control plane logs to find this error.

Before you begin

Complete the following steps before you configure the gateway parameters.

  1. Create or connect to an OpenShift cluster that runs a supported version.
  2. Install the oc CLI, and log in to your cluster as a user with the cluster-admin role. The steps that grant an SCC require that role.
  3. Install the Solo Enterprise for agentgateway control plane by following the Helm guide. On OpenShift 4.19 or later, skip the step to install the Kubernetes Gateway API CRDs, because the cluster Ingress Operator owns those CRDs instead. The Ingress Operator pins the Gateway API version to an older standard channel, so some features throughout the Solo Enterprise for agentgateway might be unavailable. For more information, see the supported OpenShift versions.

Configure the gateway parameters

Create one EnterpriseAgentgatewayParameters resource that removes the security settings that OpenShift rejects. Then, attach the resource to each GatewayClass. Parameters that you attach to a GatewayClass apply to every Gateway in that class, so a single resource covers both the proxies that you create later and the shared extensions.

You can also attach an EnterpriseAgentgatewayParameters resource to an individual Gateway, in the spec.infrastructure.parametersRef field. The control plane applies the GatewayClass settings first, and then the Gateway settings on top. Attach a resource to a Gateway only for settings that must differ for one proxy.

Keep the sharedExtensions field on the resource that you attach to the GatewayClass, because the control plane ignores that field on a resource that you attach to a Gateway.

  1. Create the EnterpriseAgentgatewayParameters resource.

    kubectl apply --server-side -f- <<'EOF'
    apiVersion: enterpriseagentgateway.solo.io/v1alpha1
    kind: EnterpriseAgentgatewayParameters
    metadata:
      name: openshift-params
      namespace: agentgateway-system
    spec:
      deployment:
        spec:
          template:
            spec:
              containers:
              - name: agentgateway
                securityContext:
                  allowPrivilegeEscalation: false
                  readOnlyRootFilesystem: true
                  runAsNonRoot: true
                  runAsUser:
                    $patch: delete
                  capabilities:
                    drop:
                    - ALL
      sharedExtensions:
        extCache:
          enabled: true
          deployment:
            spec:
              template:
                spec:
                  securityContext:
                    $patch: delete
                  containers:
                  - name: redis
                    securityContext:
                      $patch: delete
        extauth:
          enabled: true
          deployment:
            spec:
              template:
                spec:
                  securityContext:
                    $patch: delete
                  containers:
                  - name: ext-auth-service
                    securityContext:
                      $patch: delete
        ratelimiter:
          enabled: true
          deployment:
            spec:
              template:
                spec:
                  securityContext:
                    $patch: delete
                  containers:
                  - name: rate-limiter
                    securityContext:
                      $patch: delete
    EOF
    SettingDescription
    spec.deploymentAn overlay that the control plane merges into the proxy Deployment. Set runAsUser to $patch: delete to remove only that field, and keep the rest of the container security context.
    containersThe container overlay. Change the agentgateway container only, and do not add a securityContext at the pod level. The pod security context carries the sysctl that lets the proxy bind ports below 1024.
    spec.sharedExtensionsSettings for the external auth, rate limiting, and external cache extensions. This field is valid only on a resource that you attach to a GatewayClass.
    enabledWhether the control plane deploys the extension. Set the value to false for an extension that your environment does not use, and remove the security context overlay for it.
    $patch: deleteA strategic merge patch directive that removes the field. Use this directive rather than null, because it works with both client-side and server-side apply.
  2. Attach the resource to both default GatewayClasses. The enterprise-agentgateway-waypoint class needs the same parameters as enterprise-agentgateway, because a waypoint proxy runs the same image with the same defaults.

    Note

    Patch the GatewayClasses instead of applying them. The control plane Helm release owns both resources, and an apply replaces fields that the release manages.

    for class in enterprise-agentgateway enterprise-agentgateway-waypoint; do
      kubectl patch gatewayclass ${class} --type=merge -p '{
        "spec": {
          "parametersRef": {
            "group": "enterpriseagentgateway.solo.io",
            "kind": "EnterpriseAgentgatewayParameters",
            "name": "openshift-params",
            "namespace": "agentgateway-system"
          }
        }
      }'
    done
  3. Verify that each GatewayClass references the parameters.

    kubectl get gatewayclass -o custom-columns=NAME:.metadata.name,PARAMS:.spec.parametersRef.name

    Example output:

    NAME                               PARAMS
    enterprise-agentgateway             openshift-params
    enterprise-agentgateway-waypoint   openshift-params
  4. Verify that the shared extension pods are running.

    kubectl get pods -n agentgateway-system

    If a pod stays in CreateContainerConfigError or does not schedule, describe it. An SCC rejection names the setting that failed, such as unable to validate against any security context constraint: runAsUser: Invalid value: 10101.

    kubectl describe pod -n agentgateway-system <pod-name>

Verify that the proxy binds its ports

A proxy that cannot bind its listener ports still shows a Ready status. To make sure that the gateway works as expected, check the proxy logs and send a request.

  1. Create a Gateway that listens on port 80.

    kubectl apply -f- <<'EOF'
    apiVersion: gateway.networking.k8s.io/v1
    kind: Gateway
    metadata:
      name: agentgateway-proxy
      namespace: agentgateway-system
    spec:
      gatewayClassName: enterprise-agentgateway
      listeners:
      - protocol: HTTP
        port: 80
        name: http
        allowedRoutes:
          namespaces:
            from: All
    EOF
  2. Check the proxy logs for a bind error. A proxy that cannot bind a listener port logs the error once at startup and then reports itself ready, so this line is the only warning you get.

    kubectl logs -n agentgateway-system deploy/agentgateway-proxy | grep -i "bind"

    A successful bind looks like the following example.

    info  proxy::gateway  started bind  bind="80/agentgateway-system/agentgateway-proxy"

    A failed to start bind listener line means that the proxy pod lost the net.ipv4.ip_unprivileged_port_start sysctl. Check that your gateway parameters change the container security context only, and that they do not set a pod security context.

    warn  store::binds  failed to start bind listener  bind=80/agentgateway-system/agentgateway-proxy
  3. Confirm that the proxy container runs with a UID from the namespace range, and not with 10101.

    kubectl get pod -n agentgateway-system -l gateway.networking.k8s.io/gateway-name=agentgateway-proxy \
      -o jsonpath='{.items[0].spec.containers[0].securityContext}'

Install the management UI on OpenShift

The optional management UI for Solo Enterprise for agentgateway needs two changes on OpenShift. The ClickHouse database that stores the UI data runs as a fixed UID, which restricted-v2 rejects. The collector that watches Kubernetes objects needs more memory than the default limit allows, because an OpenShift cluster holds many more objects than a stock Kubernetes cluster. The other UI pods need no change, because they request only runAsNonRoot.

  1. Grant the nonroot-v2 SCC to the ClickHouse service account. The service account name is the Helm release name followed by -clickhouse, so the enterprise-agentgateway release creates enterprise-agentgateway-clickhouse. Use nonroot-v2 rather than anyuid, because nonroot-v2 permits the fixed UID that ClickHouse needs and still forbids root. To avoid the SCC grant altogether, use a ClickHouse instance that you manage outside the cluster, as described in Bring your own ClickHouse.

    oc adm policy add-scc-to-user nonroot-v2 -z enterprise-agentgateway-clickhouse -n agentgateway-system

    Without this grant, the ClickHouse pod does not schedule, and the StatefulSet reports that the pod security context sets both a user and a group that the namespace range does not allow.

    provider restricted-v2: .spec.securityContext.fsGroup: Invalid value: [101]: 101 is not an allowed group, provider restricted-v2: .containers[0].runAsUser: Invalid value: 101: must be in the ranges: [1000660000, 1000669999]
  2. Install the UI, as described in Set up the management UI, and raise the memory limit of the k8sobjects-collector container.

    --set ui.telemetry.k8sobjects.resources.limits.memory=2Gi
    SettingDescription
    ui.telemetry.k8sobjects.resources.limits.memoryThe memory limit of the collector that watches Kubernetes objects. The default value is 768Mi, which is not enough on most OpenShift clusters. Raise the value until the container stops restarting. The amount of memory that the collector needs scales with the number of objects in your cluster, so a larger cluster needs a larger value.

    The collector runs in its own enterprise-agentgateway-ui-k8sobjects-collector deployment. A collector that exceeds the limit is restarted, and the UI shows stale or missing resource data until it starts again. To confirm this case, check the container for an OOMKilled reason.

    kubectl get pod -n agentgateway-system -l app=enterprise-agentgateway-ui-k8sobjects-collector \
      -o jsonpath='{.items[*].status.containerStatuses[?(@.name=="k8sobjects-collector")].lastState.terminated.reason}'

Deploy applications on OpenShift

The same SCC rules apply to the applications that you route to. An application image that runs as a fixed UID, such as many community sample images, does not start under restricted-v2. Grant the anyuid SCC to the service account that the application uses.

oc adm policy add-scc-to-user anyuid -z default -n <your-namespace>

Where your security policy allows it, grant the SCC to a dedicated service account rather than to default. A grant to default applies to every workload in the namespace that does not name its own service account.