cluster-proxy

by open-cluster-management

Helm chartv0.13.0App 1.1.0Verified publisher

A Helm chart for Cluster-Proxy OCM Addon

About this chart

Cluster Proxy Helm Chart

This Helm chart installs the Cluster Proxy addon for Open Cluster Management (OCM), which enables accessing services in isolated managed clusters through reverse proxy tunnels.

Prerequisites

  • Kubernetes cluster
  • Helm 3.x
  • Open Cluster Management (OCM) installed

Installation

helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace

Configuration

Values

ParameterDescriptionDefault
registryRegistry used with image and tagquay.io/open-cluster-management
imageCluster-proxy image namecluster-proxy
tagCluster-proxy image tagv<chart version>
replicasReplicas for hub deployments1
spokeAddonNamespaceDefault managed cluster addon namespaceopen-cluster-management-cluster-proxy
proxyServerImageDefault apiserver-network-proxy server imagequay.io/open-cluster-management/cluster-proxy
proxyAgentImageDefault apiserver-network-proxy agent imagequay.io/open-cluster-management/cluster-proxy
proxyServer.entrypointLoadBalancerExpose the proxy entrypoint with a LoadBalancer Servicefalse
proxyServer.entrypointAddressExternal proxy entrypoint hostname""
proxyServer.portProxy entrypoint port8091
proxyServer.imagePullPolicyProxy server and agent image pull policyIfNotPresent
installByPlacement.placementNamePlacement used to select managed clusterscluster-proxy-placement when empty
installByPlacement.placementNamespaceNamespace containing the PlacementRelease namespace when empty
enableKubeApiProxyEnable Kubernetes API proxy supporttrue
enableServiceProxyDeploy the hub user-server and managed cluster service-proxyfalse
enableImpersonationGrant permissions for hub token authenticationtrue
featureGates.clusterProfileEnable ClusterProfile integrationfalse
userServer.enabledGenerate and rotate the user-server serving certificatefalse
userServer.enableHTTP2Multiplex non-upgrade requests over reusable HTTP/2 tunnelstrue
userServer.additionalSANsExtra SANs for the generated user-server certificate[]
exposedServicesConfigMapNameConfigMap containing the service allowlistcluster-proxy-exposed-services
exposedServicesServices exposed through the service proxy path[]
networkPolicies.enabledCreate opt-in NetworkPolicies for hub and managed workloadsfalse

Service Proxy and User Server Configuration

The user-server accepts HTTP requests over HTTPS on the hub and sends them through the cluster-proxy tunnel. The service-proxy sidecar on each managed cluster authenticates Kubernetes API requests and forwards them to the target Service. Enable both components with:

helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true \
  --set enableImpersonation=true \
  --set userServer.enabled=true

enableImpersonation defaults to true and grants the required hub permissions.

Kubernetes API requests are not filtered by the service allowlist. Requests to other Services are denied unless the destination appears in exposedServices. For example, save the following as exposed-services.yaml and pass --values exposed-services.yaml to the Helm command:

exposedServices:
  - namespace: monitoring
    service: prometheus
    port: "9090"
    protocol: https

namespace and service are required. Omit port or protocol to allow any value for that field. To manage the ConfigMap outside Helm, leave exposedServices empty and set exposedServicesConfigMapName to its name.

User Server Serving Certificate

The user-server deployment mounts a TLS serving certificate from the cluster-proxy-user-serving-cert secret in the installation namespace. You can provision this secret in one of two ways.

Option 1 (recommended): let the controller generate and rotate it

Set userServer.enabled=true so the ManagedProxyConfiguration requests a user-server certificate. The controller then generates the cluster-proxy-user-serving-cert secret in the installation namespace and rotates it automatically, so no manual secret creation is required:

helm upgrade --install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true \
  --set userServer.enabled=true

Add extra hostnames or IPs to the generated certificate with userServer.additionalSANs:

helm upgrade --install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true \
  --set userServer.enabled=true \
  --set userServer.additionalSANs[0]=user-server.example.com

Option 2: provide the certificate yourself

If you leave userServer.enabled=false, you MUST create the cluster-proxy-user-serving-cert secret in the installation namespace before the user-server pods can start:

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
  name: cluster-proxy-user-serving-cert
  namespace: open-cluster-management-addon
data:
  tls.crt: <base64-encoded-certificate>
  tls.key: <base64-encoded-private-key>

Automatically Created Secrets:

The following secrets are always created automatically by the controller and do NOT need to be created manually:

  • proxy-server-ca - CA certificate for the proxy server
  • proxy-client - Client certificate for proxy authentication

⚠️ Warning: When userServer.enabled=false and the cluster-proxy-user-serving-cert secret is not present, the user-server deployment will remain in Pending state and pods will fail to start. Either set userServer.enabled=true or create the secret manually.

To verify the secret exists (whether controller-generated or manually created):

kubectl get secret -n open-cluster-management-addon cluster-proxy-user-serving-cert

External OIDC Authentication

OIDC is configured per managed cluster through an AddOnDeploymentConfig, not through top-level Helm values. First enable service-proxy and choose a user-server certificate option:

helm upgrade --install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true \
  --set userServer.enabled=true

Then follow the service-proxy authentication and impersonation guide to configure the issuer, optional private CA, ManagedClusterAddOn reference, and managed cluster RBAC.

Examples

Basic Installation

helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace

With User Server Enabled (controller-managed certificate)

# The controller generates and rotates cluster-proxy-user-serving-cert automatically.
# proxy-server-ca and proxy-client secrets are also created automatically by the controller.
helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true \
  --set userServer.enabled=true

With User Server Enabled (self-provided certificate)

# Leave userServer.enabled at its default (false) and create the secret yourself first
kubectl create namespace open-cluster-management-addon \
  --dry-run=client \
  --output yaml \
  | kubectl apply -f -

kubectl create secret tls cluster-proxy-user-serving-cert \
  --cert=path/to/tls.crt \
  --key=path/to/tls.key \
  -n open-cluster-management-addon

# Then install with user server enabled
# Note: proxy-server-ca and proxy-client secrets will be created automatically by the controller
helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set enableServiceProxy=true

Custom Image and Replicas

helm install cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set image=my-custom-proxy \
  --set tag=v1.0.0 \
  --set replicas=3

Upgrading

helm upgrade cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon

Uninstallation

helm uninstall cluster-proxy \
  --namespace open-cluster-management-addon

Troubleshooting

User Server Pods Stuck in Pending

Symptom: After enabling enableServiceProxy=true, the deployment pods remain in Pending state because the cluster-proxy-user-serving-cert secret is missing.

Solution: Verify that the secret exists in the namespace:

kubectl get secret -n open-cluster-management-addon cluster-proxy-user-serving-cert

If the secret is missing, either let the controller manage it by enabling automatic rotation:

helm upgrade cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --set enableServiceProxy=true \
  --set userServer.enabled=true

or create it manually:

kubectl create secret tls cluster-proxy-user-serving-cert \
  --cert=path/to/tls.crt \
  --key=path/to/tls.key \
  -n open-cluster-management-addon

Note: The proxy-server-ca and proxy-client secrets are created automatically by the controller and do not need manual creation.

ImagePullBackOff Errors

Solution: Verify the image registry and credentials:

helm upgrade cluster-proxy ./charts/cluster-proxy \
  --namespace open-cluster-management-addon \
  --set registry=registry.example.com/team \
  --set image=cluster-proxy \
  --set tag=v1.0.0

More Information

For more details about the Cluster Proxy project, visit the GitHub repository.

Deploy cluster-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-proxy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcluster-proxy is pinned at v0.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply