cluster-proxy
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
| Parameter | Description | Default |
|---|---|---|
registry | Registry used with image and tag | quay.io/open-cluster-management |
image | Cluster-proxy image name | cluster-proxy |
tag | Cluster-proxy image tag | v<chart version> |
replicas | Replicas for hub deployments | 1 |
spokeAddonNamespace | Default managed cluster addon namespace | open-cluster-management-cluster-proxy |
proxyServerImage | Default apiserver-network-proxy server image | quay.io/open-cluster-management/cluster-proxy |
proxyAgentImage | Default apiserver-network-proxy agent image | quay.io/open-cluster-management/cluster-proxy |
proxyServer.entrypointLoadBalancer | Expose the proxy entrypoint with a LoadBalancer Service | false |
proxyServer.entrypointAddress | External proxy entrypoint hostname | "" |
proxyServer.port | Proxy entrypoint port | 8091 |
proxyServer.imagePullPolicy | Proxy server and agent image pull policy | IfNotPresent |
installByPlacement.placementName | Placement used to select managed clusters | cluster-proxy-placement when empty |
installByPlacement.placementNamespace | Namespace containing the Placement | Release namespace when empty |
enableKubeApiProxy | Enable Kubernetes API proxy support | true |
enableServiceProxy | Deploy the hub user-server and managed cluster service-proxy | false |
enableImpersonation | Grant permissions for hub token authentication | true |
featureGates.clusterProfile | Enable ClusterProfile integration | false |
userServer.enabled | Generate and rotate the user-server serving certificate | false |
userServer.enableHTTP2 | Multiplex non-upgrade requests over reusable HTTP/2 tunnels | true |
userServer.additionalSANs | Extra SANs for the generated user-server certificate | [] |
exposedServicesConfigMapName | ConfigMap containing the service allowlist | cluster-proxy-exposed-services |
exposedServices | Services exposed through the service proxy path | [] |
networkPolicies.enabled | Create opt-in NetworkPolicies for hub and managed workloads | false |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcluster-proxy is pinned at v0.13.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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