proxy-helm

by Uyuni Project

Helm chartv2026.11.0App 2026.11MITVerified publisher

Uyuni proxy containers.

About this chart

proxy-helm

This chart installs Uyuni proxy. This is deploying the core features, the uyuni-charts repository contains some examples Helm charts using it in conjunction with other tools.

Configuration

Secrets and CA ConfigMap

The proxy needs a TLS secret proxy-cert (its server certificate + private key) and a ConfigMap uyuni-ca (root CA in the ca.crt key).

The chart will create both automatically when the source data is present in the supplied tarball values:

  • proxy-cert is rendered when httpd.yaml contains httpd.server_crt and httpd.server_key
  • uyuni-ca is rendered when config.yaml contains ca_crt

Both server-generated fields contain an OpenSSL human-readable text dump followed by the PEM block; the chart strips the dump and keeps only the PEM block.

If those fields are absent from the tarball, the chart renders nothing and the objects must be provided as prerequisites:

kubectl -n <namespace> create secret tls proxy-cert \
  --cert=server.crt --key=server.key

kubectl -n <namespace> create configmap uyuni-ca \
  --from-file=ca.crt=ca.crt

Pre-existing manually-created objects

If proxy-cert or uyuni-ca already exist in the namespace (e.g. created by hand on a previous install), the chart leaves them alone by default — it will not render over them, and helm install/upgrade will not fail. The proxy keeps using the values already present.

To let helm take over and manage them from the tarball values, the chart has to render the resources so helm has something to adopt. Set cert.takeOwnership=true and pass helm install --take-ownership (helm 3.14+) once:

helm upgrade --install uyuni-proxy <chart> \
  --namespace <namespace> \
  --take-ownership \
  --set cert.takeOwnership=true \
  --set-file global.config=config.yaml \
  --set-file global.httpd=httpd.yaml \
  --set-file global.ssh=ssh.yaml

After adoption the chart treats them as helm-managed: value changes are applied on upgrade, and they are removed on helm uninstall like any other chart resource. cert.takeOwnership can be left at true or dropped back to false on subsequent upgrades — once the objects carry the helm managed-by label the default render condition already covers them.

Persistent Volumes

The squid-cache persistent volume claim will be created and will need to be bound to a persistent volume. The size of this volume is taken from the configuration generated by the server.

The claim uses the ReadWriteOnce access mode and can be configured in the values.

The storage class supports a special "-" value to force the storage class to the empty string. This is different from the "" value representing the default storage class by not setting any storage class at all.

The volume claims can have the extraLabels, annotations properties to add metadata to it. It can also have the volumeName and selector properties to precisely associate the claim to a volume.

Node Tuning

For the Uyuni Proxy deployments, it is possible to finely control which nodes the pods are scheduled on. This chart supports a default configuration with local overrides, allowing baseline rules to be set for all pods and customized for specific components (like tftp or the main proxy) when needed.

Scheduling can be controlled using nodeSelector, affinity, tolerations, or nodeName. It is not necessary to use all of them; simply choose the method that matches the cluster's scheduling strategy.

Note: These keys are not pre-populated in the default values.yaml. They can be added under the sections below (e.g. placement:, proxy:, tftp:) as needed for the deployment.

For example, to set a baseline rule for all components but override the placement for the proxy and tftp pods specifically, the values.yaml could look like this:

# DEFAULTS
# These rules apply to all pods unless overridden by a specific component.
placement:
  nodeSelector:
    environment: production

  # Allowing all pods to schedule on tainted nodes
  tolerations:
  - key: "proxy-tier"
    operator: "Equal"
    value: "true"
    effect: "NoSchedule"

# LOCAL OVERRIDES
# These rules apply ONLY to the specific component and override the global equivalents.
proxy:
  # Example: ensure the main proxy pods land on a specific node pool
  nodeSelector:
    node-pool: "proxy-nodes"

tftp:
  # Overrides the global nodeSelector with a specific node requirement
  nodeSelector:
    "kubernetes.io/hostname": "node-42"

  # Complex scheduling rules (Soft or Hard requirements)
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: "kubernetes.io/hostname"
            operator: In
            values:
            - "node-42"

  # Direct node assignment (bypasses the scheduler and affinity rules completely)
  # nodeName: "node-42"

Exposing ports

Uyuni proxy requires some TCP ports to be routed to its services. Here is a list of the ports to map:

ProtocolPortService nameService port
TCP8022ssh8022
TCP4505salt4505
TCP4506salt4506

Exposing the tftp service has to be done differently due to the way TFTP protocol is working. Either use the host network using the tftp.hostNetwork value or configure a load balancer for the tftp service. Note that not all load balancers will work: serviceLB implementation is not compatible with TFTP protocol, while MetalLB works.

Services can be configured with the following values:

KeyTypeDefaultDescription
typestring"ClusterIP"type of all the externally-facing services. Can be overridden on each service.
annotationsstringnilannotations to set to all the services. Merged with the service ones.

Each of the services can be configured with an overriding type and annotations. The list of services supporting this is:

| Service | Comment | | ssh | | | salt | | | tftp | Cannot override the type |

When using Traefik as the ingress, the three TCP services are routed through IngressRouteTCP resources bound to Traefik entryPoints. The chart defaults are ssh, salt-publish and salt-request. If the surrounding Traefik installation uses different entryPoint names, override them:

ingress:
  entryPoints:
    ssh: "uyuni-ssh"
    saltPublish: "uyuni-publish"
    saltRequest: "uyuni-request"

DNS configuration

The dnsConfig value is a passthrough to the pod's Kubernetes PodDNSConfig. It is unset by default so the pod inherits the cluster's normal DNS behavior.

If external FQDN lookups from the proxy hang for ~10s (the default urlopen timeout), the cluster's default ndots:5 is likely expanding the name through several cluster search domains before falling back to the bare lookup. Override with:

dnsConfig:
  options:
    - name: ndots
      value: "1"

Configuration files

The chart requires the global.config, global.httpd and global.ssh values to contain the YAML produced by the server. Generate them from the Systems > Proxy Configuration page on the Uyuni/MLM server (or via the proxy.containerConfig API). The server returns a config.tar.gz containing config.yaml, httpd.yaml and ssh.yaml. Extract it and pass the files to Helm with --set-file.

Installation

RKE2

RKE2 ships Traefik as the default ingress controller. The chart's default ingress.class: traefik and entryPoint names (ssh, salt-publish, salt-request) must match the Traefik configuration. Drop a HelmChartConfig under /var/lib/rancher/rke2/server/manifests/ to expose the required TCP entryPoints:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-traefik
  namespace: kube-system
spec:
  valuesContent: |-
    ports:
      ssh:
        port: 8022
        expose:
          default: true
        exposedPort: 8022
        protocol: TCP
        hostPort: 8022
      salt-publish:
        port: 4505
        expose:
          default: true
        exposedPort: 4505
        protocol: TCP
        hostPort: 4505
        containerPort: 4505
      salt-request:
        port: 4506
        expose:
          default: true
        exposedPort: 4506
        protocol: TCP
        hostPort: 4506
        containerPort: 4506
# 1. Extract the config tarball generated by the server
mkdir -p /root/proxy-config && cd /root/proxy-config
tar xzf /root/config.tar.gz   # gives config.yaml, httpd.yaml, ssh.yaml

# 2. Install the chart — proxy-cert and uyuni-ca are created from the tarball values
CHART=oci://registry.opensuse.org/uyuni/proxy-helm   # adjust to your registry
kubectl create namespace uyuni-proxy
helm upgrade --install uyuni-proxy $CHART \
  --namespace uyuni-proxy \
  --description "Proxy installation" \
  --set-file global.config=config.yaml \
  --set-file global.httpd=httpd.yaml \
  --set-file global.ssh=ssh.yaml

K3S

K3S ships Traefik in the kube-system namespace. Two things need to be aligned with the chart before the proxy will work:

  1. ingress.class: on a vanilla K3S, the bundled Traefik picks up every Ingress regardless of class, so ingress.class: "" is the safest value. If your Traefik is started with --providers.kubernetescrd.ingressclass=traefik (e.g. mgrpxy-customized installs), set ingress.class: "traefik" instead so the chart emits the matching annotation.
  2. Traefik entryPoints: the bundled Traefik must expose TCP entryPoints whose names match ingress.entryPoints (defaults ssh, salt-publish, salt-request). Drop a HelmChartConfig under /var/lib/rancher/k3s/server/manifests/ so K3S reconciles them automatically:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    ports:
      ssh:
        port: 8022
        exposedPort: 8022
        protocol: TCP
        expose:
          default: true
      salt-publish:
        port: 4505
        exposedPort: 4505
        protocol: TCP
        expose:
          default: true
      salt-request:
        port: 4506
        exposedPort: 4506
        protocol: TCP
        expose:
          default: true

K3S's built-in load balancer (klipper-lb / serviceLB) does not support the TFTP protocol. Expose TFTP via the host network instead:

tftp:
  hostNetwork: true
# Extract the config tarball generated by the server
mkdir -p /root/proxy-config && cd /root/proxy-config
tar xzf /root/config.tar.gz   # gives config.yaml, httpd.yaml, ssh.yaml

# Install the chart — proxy-cert and uyuni-ca are created from the tarball values
CHART=oci://registry.opensuse.org/uyuni/proxy-helm   # adjust to your registry
kubectl create namespace uyuni-proxy
helm upgrade --install uyuni-proxy $CHART \
  --namespace uyuni-proxy \
  --description "Proxy installation" \
  --set-file global.config=config.yaml \
  --set-file global.httpd=httpd.yaml \
  --set-file global.ssh=ssh.yaml \
  --set ingress.type=traefik \
  --set ingress.class=traefik \
  --set tftp.hostNetwork=true

Upgrade from proxy deployed with mgrpxy to helm chart on K3S

The deployment selector labels changed between the installation using mgrpxy and the helm chart (app: uyuni-proxy → app.kubernetes.io/component: proxy). Since spec.selector is immutable in Kubernetes, the old deployment must be removed before the new one can be created. This causes a short downtime (~30-60s). The squid cache PVC can be preserved across the upgrade.

Preparation (while the proxy deployed with mgrpxy is still running)

# Preserve the squid PVC by switching the PV reclaim policy to Retain
PV=$(kubectl -n <namespace> get pvc squid-cache -o jsonpath='{.spec.volumeName}')
kubectl patch pv $PV -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'

# Extract config files from the running proxy deployed using mgrpxy
kubectl -n <namespace> exec deploy/uyuni-proxy -c httpd -- cat /etc/uyuni/config.yaml > /root/proxy-config/config.yaml
kubectl -n <namespace> exec deploy/uyuni-proxy -c httpd -- cat /etc/uyuni/httpd.yaml > /root/proxy-config/httpd.yaml
kubectl -n <namespace> exec deploy/uyuni-proxy -c ssh  -- cat /etc/uyuni/ssh.yaml   > /root/proxy-config/ssh.yaml

# Prepare the new namespace — the chart will create proxy-cert and uyuni-ca
# from the tarball values at install time.
kubectl create namespace uyuni-proxy

Update Traefik (no downtime)

Replace the mgrpxy-managed Traefik config (which used uyuni-ssh, uyuni-publish, uyuni-request) with the new chart defaults:

cat > /var/lib/rancher/k3s/server/manifests/uyuni-traefik-config.yaml << 'EOF'
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    ports:
      ssh:
        port: 8022
        exposedPort: 8022
        protocol: TCP
        expose:
          default: true
      salt-publish:
        port: 4505
        exposedPort: 4505
        protocol: TCP
        expose:
          default: true
      salt-request:
        port: 4506
        exposedPort: 4506
        protocol: TCP
        expose:
          default: true
EOF

kubectl -n kube-system rollout restart deploy/traefik
kubectl -n kube-system rollout status deploy/traefik

Cutover (downtime starts here)

# Uninstall the mgrpxy-managed chart
helm -n <namespace> uninstall <release-name>

# Release the PV from its old claim so 

Deploy proxy-helm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has proxy-helm 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 chartproxy-helm is pinned at v2026.11.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