Uyuni Proxy Deployment on K3s
1. Installing K3s
On the container host machine, install K3s
(replace <K3S_HOST_FQDN>
with the FQDN of your K3s host):
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--tls-san=<K3S_HOST_FQDN>" sh -
2. Installing Tools
The installation requires the mgrpxy
and helm
packages.
Install Helm by using the installer script:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh
For more information, see https://helm.sh/docs/intro/install/#from-script.
The mgrpxy
package is available in the container utils repository.
Pick the one matching the distribution in: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/.
-
To install package on Leap Micro run:
transactional-update pkg install mgrpxy
-
Reboot.
3. Deploying the Uyuni Proxy Helm Chart
To configure the storage of the volumes to be used by the Uyuni Proxy pod, define persistent volumes for the following claims. If you do not customize the storage configuration, K3s will automatically create the storage volumes for you.
The persistent volume claims are named:
-
squid-cache-pv-claim
-
/package-cache-pv-claim
-
/tftp-boot-pv-claim
Create the configuration for the Uyuni Proxy as documented in Containerized Uyuni Proxy Setup.
Copy the configuration tar.gz
file and then install:
mgrpxy install kubernetes /path/to/config.tar.gz
For more information see:
-
https://kubernetes.io/docs/concepts/storage/persistent-volumes/ (Kubernetes)
-
https://rancher.com/docs/k3s/latest/en/storage/ (K3s) documentation