server-helm

by Uyuni Project

Helm chartv2026.11.0App 2026.11MITVerified publisher

Uyuni server

About this chart

server-helm

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

Configuration

Secrets

The following secrets with kubernetes.io/basic-auth type are required. They need to contain a username and a password key.

  • db-admin-credentials: PostgreSQL administrator credentials
  • db-credentials: credentials for the internal database user
  • reportdb-credentials: credentials for the report database user
  • admin-credentials: credentials for the server administrator

SCC organization mirroring credentials can be automatically set if the name of secret of kubernetes.io/basic-auth type with those credentials is set as server.sccSecret value.

The following TLS secrets are expected:

  • db-cert: is the TLS certificate for the report database and needs to have the db and reportdb Subject Alternate Names as well as the FQDN exposed to the outside world
  • uyuni-cert: is the TLS certificate for the ingress rule and needs to have the public FQDN as Subject Alternate Name.

Pulling images from a registry requiring authentication requires a secret of kubernetes.io/dockerconfigjson type. Its name needs to be passed as the registrySecret value.

ConfigMaps

The Root CA certificate of db-cert and uyuni-cert are expected in ConfigMaps named db-ca and uyuni-ca with the certificate in the ca.crt key.

An optional trust-anchors ConfigMap can be created to extend the server's trust store with custom CA certificates. When present, it is projected into /etc/pki/trust/anchors/ alongside uyuni-ca and db-ca. Each key in the ConfigMap becomes a file under that directory, so name the keys after the certificate file name (typically ending in .crt). If the ConfigMap is missing, the chart still deploys — only the uyuni-ca and db-ca certificates are projected.

If you previously used the removed ca-certs PVC to provide additional certificates, migrate them into trust-anchors before upgrading.

Custom CA certificates

On Kubernetes, the /etc/pki/trust/anchors/ directory is a read-only projected volume that aggregates the uyuni-ca, db-ca, and trust-anchors ConfigMaps. To add or remove custom CAs, update the trust-anchors ConfigMap. Kubernetes will update the mounted files automatically (with a short delay). However, you must restart the uyuni deployment for running services to reload the trust store. For example, to add my-corp.crt:

kubectl create configmap trust-anchors -n $NAMESPACE \
    --from-file=my-corp.crt=./my-corp.crt \
    --dry-run=client -o yaml > trust-anchors.yaml
kubectl apply -f trust-anchors.yaml
kubectl rollout restart deployment/uyuni -n $NAMESPACE

To add or remove certificates later, regenerate the YAML file with the desired set of files and reapply. Remember to restart the deployment after applying certificate changes.

To add or change multiple certificates, add more --from-file flags. To remove a certificate, edit the ConfigMap and delete the key, then restart the deployment.

Persistent Volumes

The following persistent volume claims will be created and will need to be bound to persistent volumes.

Volume KeyDefault Size
var-pgsql"50Gi"
var-spacewalk"100Gi"
var-cache"10Gi"
var-log"2Gi"
srv-www"100Gi"
srv-tftpboot"300Mi"
etc-apache2"1Mi"
etc-cobbler"1Mi"
etc-postfix"1Mi"
etc-rhn"1Mi"
etc-salt"1Mi"
etc-sssd"1Mi"
etc-sysconfig"20Mi"
etc-systemd-multi"1Mi"
etc-systemd-sockets"1Mi"
etc-tomcat"1Mi"
run-salt-master"10Mi"
srv-formulametadata"10Mi"
srv-pillar"10Mi"
srv-salt"10Mi"
srv-spacewalk"10Mi"
srv-susemanager"1Mi"
var-cobbler"10Mi"
var-salt"10Mi"
var-search"10Gi"

They all are using the ReadWriteOnce access mode and can be configured in the values.

Changing the default volume sizes according to the distributions you plan to synchronize and manage is recommended. See the requirements documentation for more information.

The volumes.storageClass can be used to change the storage class of all the persistent volume claims. This would be overridden by each claim's volumes.<claim>.storageClass value.

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.

Each of the volume claims can have the extraLabels, annotations properties to add metadata to the claims. They can also have the volumeName and selector properties to precisely associate the claim to a volume.

Additional volumes can be attached to the server pod with server.extraVolumes and mounted into the server container with server.extraVolumeMounts. This is useful for optional content volumes like inter-server-sync data without changing the chart templates.

For example:

server:
  extraVolumes:
    - name: inter-server-sync-data
      persistentVolumeClaim:
        claimName: inter-server-sync-data

  extraVolumeMounts:
    - name: inter-server-sync-data
      mountPath: /inter-server-sync-data
      readOnly: true

Node Tuning

For each of the components it is possible to tune the node where the pod will be scheduled. This chart supports a default configuration with local overrides, allowing baseline rules to be set for all pods and customized for specific components 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.

For example, to set a baseline rule for all components but override the placement for the db pod specifically, the values.yaml would look like this:

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

  tolerations:
  - key: "server-tier"
    operator: "Equal"
    value: "true"
    effect: "NoSchedule"

# LOCAL OVERRIDES
# These rules apply ONLY to the specific component and override the global equivalents.
db:
  nodeSelector:
    "kubernetes.io/hostname": "node-42"

  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: "kubernetes.io/hostname"
            operator: In
            values:
            - "node-42"

  # nodeName: "node-42"

Exposing ports

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

ProtocolPortService nameService port
TCP5432reportdb5432
TCP4505salt4505
TCP4506salt4506
TCP8001taskomatic8001Only if installed with exposeJavaDebug = true
TCP8002search8002Only if installed with exposeJavaDebug = true
TCP8003tomcat8003Only if installed with exposeJavaDebug = true

Exposing TFTP

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.

Exposing the report database

Exposing the report database externally requires configuring the reportdb service as a NodePort or LoadBalancer (via the services.reportdb value).

Be aware of a critical security behavior: external database connections require SSL, whereas internal cluster connections do not. However, Traefik ingress TCP routes mask client IPs, causing PostgreSQL to view external traffic as internal.

If you expose the database using a Traefik ingress TCP route and endpoint, you risk allowing clients to establish unencrypted, insecure connections.

The IP range to use for the plain text connections on the database can be configured using the db.podsCIDR value. Also consider using a NetworkPolicy to limit the access to the database to the application namespace and the known external IPs.

Services values

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 | | reportdb | | | salt | | | search | | | taskomatic | | | tomcat | | | tftp | Cannot override the type |

Ingress vs Gateway API

The helm chart deploys ingress rules by default. Switching to Gateway API instead is possible though requires more effort. The Gateway API implementation used in this helm chart is aligned with the one handled by the traefik shipped with the latest RKE2.

Using the Gateway API routes is still experimental as some of the needed resources, namely TCPRoute are not stable yet. To enable it, set the gateway.enable value. The other values in the gateway structure may need to be set depending on the cluster setup.

Note that on RKE2 1.35 on top of enabling Traefik with Gateway API, the TLSRoute and TCPRoute CRDs need to be manually added and the Traefik helm chart has to be deployed with the providers.kubernetesGateway.experimentalChannel.

AppArmor

If the node where the server pod is running has AppArmor, the containerd profile won't let it mount the cgroup2 file system. This can be addressed in two different ways. The easiest, but unsafe way is to set server.superPrivileged=true value so the server containers run unconfined. Otherwise set the server.apparmorProfile to the name of a profile containing a definition like the following. If using exactly this content, the name of the profile to use will be k8s-systemd-uyuni.

To deploy the AppArmor profile, copy this content to /etc/apparmor.d/k8s-systemd-uyuni and run apparmor_parser -r /etc/apparmor.d/k8s-systemd-uyuni to load it.

#include <tunables/global>

profile k8s-systemd-uyuni flags=(attach_disconnected,mediate_deleted) {
  #include <abstractions/base>
  #include <abstractions/nameservice>

  # Standard container permissions
  file,
  network,
  capability,
  ptrace,
  unix,

  # Deny writes to critical kernel interfaces that systemd doesn't need to change
  deny /sys/firmware/** rwklx,
  deny /sys/kernel/debug/** rwklx,

  # Broadly allow the specific flag combinations used for systemd hardening
  # This covers /dev/pts/, /dev/mqueue/, and the previous /etc/ errors.
  mount options=(ro, nosuid, noexec, nodev, remount, bind) -> **,
  mount options=(ro, nosuid, noexec, remount, bind) -> **,
  mount options=(ro, nosuid, nodev, remount, bind) -> **,
  mount options=(ro, nosuid, remount, bind) -> **,
  mount options=(ro, remount, bind) -> **,

  # Allow mount propagation (Required for systemd to function at all)
  mount options=(rw, rslave) -> **,
  mount options=(rw, slave) -> **,
  mount options=(rw, shared) -> **,

  # Specific filesystem types for systemd's API mounts
  mount fstype=tmpfs options=(rw, nosuid, nodev, noexec) -> /tmp/,
  mount fstype=tmpfs options=(rw, nosuid, nodev) -> /tmp/,
  mount fstype=tmpfs -> /run/**,
  mount fstype=cgroup2 -> /sys/fs/cgroup/,
  mount fstype=mqueue -> /dev/mqueue/,
  mount fstype=fusectl -> /sys/fs/fuse/connections/,
  mount fstype=devpts -> /dev/pts/,

  # Generic remounts (for general compatibility)
  mount options=(rw, remount) -> **,
  mount options=(ro, remount) -> **,
 
  # Required for the uyuni server container specifically
  /sys/fs/cgroup/** rw,
  /run/** rw,
  /var/** rw,
  # Allow reading the various config volumes mapped in the chart
  /etc/** r,
}

SELinux

If the node where the server pod is running has SELinux and RKE2 is configured to use it, the container won't be able to mount the cgroup2 file system. This can be addressed in two different ways. The easiest, but unsafe way is to set server.superPrivileged=true value so the server containers run with the spc_t label. Otherwise set the server.selinuxType to the name of a custom SELinux type granting only the permissions needed by the server pod. Defining a dedicated type — rather than extending the generic container_t — ensures the extra permissions are not granted to every other container running on the node. If using exactly the policy below, the name of the type to use will be uyuni_container_t.

To deploy the policy, create a /root/systemdcontainerpolicy.te file with this content:

module systemdcontainerpolicy 1.0;

require {
    attribute domain;
    

Deploy server-helm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has server-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 chartserver-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