waldur-helm

Packaging of Waldur as Helm application

View on GitHub

Waldur Helm

Waldur is a platform for creating hybrid cloud solutions. It allows building enterprise-grade systems and providing self-service environment for the end-users.

Introduction

This chart bootstraps a Waldur deployment on a Kubernetes cluster using the Helm package manager.

Installing prerequisites

  1. Install Kubernetes server (1.23 or later), for example, using minikube
  2. Install Kubernetes client, i.e. kubectl
  3. Install Helm

Installing the chart

  1. Add the Waldur Helm repository

       helm repo add waldur-charts https://waldur.github.io/waldur-helm/
    
  2. Install dependencies or enable them in Helm values

    2.1. Quick setup:

    In values.yaml set:

    • postgresql.enabled to true
    • rabbitmq.enabled to true

    One-liner:

     helm install my-waldur --set postgresql.enabled=true --set rabbitmq.enabled=true waldur-charts/waldur
    

    2.2. Advanced setup of dependencies Setup database using one of:

    Install RabbitMQ for task queue: instructions

  3. Install the Helm chart

       helm install my-waldur waldur-charts/waldur -f path/to/values.yml
    

NB After this command, Waldur release will run in default namespace. Please, pay attention in which namespace which release is running.

For instance, you can install Waldur release in test namespace in the following way:

  1. Create test namespace:

       kubectl create namespace test
    
  2. Install release:

       helm install waldur waldur-charts/waldur --namespace test
    

However, postgresql release and waldur should be installed in the same namespace in order to share a common secret with DB credentials.

Adding admin user

Open waldur-mastermind-worker shell and execute the following command:

  1. Get waldur-mastermind-worker pod name

       # Example:
       kubectl get pods -A | grep waldur-mastermind-worker # -->
       # default waldur-mastermind-worker-6d98cd98bd-wps8n 1/1 Running 0 9m9s
    
  2. Connect to pod via shell

       # Example:
       kubectl exec -it deployment/waldur-mastermind-worker -- /bin/bash
    
  3. Execute command to add admin user

       waldur createstaffuser -u user -p password -e admin@example.com
    

Waldur Helm chart release upgrading

No jobs need to be deleted by hand first: the init-whitelabeling job is a Helm hook that Helm replaces on every upgrade.

Upgrade Waldur dependencies and release:

  helm dep update waldur/
  helm upgrade waldur waldur/

Settings the chart renders are locked in the admin UI, and settings it no longer renders are handed back to administrators with their current values. Before upgrading from a chart that rendered its defaults, see “Upgrading” under “Settings managed by the chart” in docs/whitelabeling.md: a copied values file or --reuse-values keeps those defaults set and locked.

Restart deployments to apply configmaps changes:

  kubectl rollout restart deployment waldur-mastermind-beat
  kubectl rollout restart deployment waldur-mastermind-api
  kubectl rollout restart deployment waldur-mastermind-worker
  kubectl rollout restart deployment waldur-homeport

Private registry setup

A user can use private registry for Docker images. For this, the corresponding credentials should be registered in a secret, name of which should be placed in .Values.imagePullSecrets. A secret can be created trough CLI.

Configuration docs

Configuration documentation: index

Remote MCP server

waldur.mcp.enabled runs waldur mcp_server and routes /mcp and the OAuth endpoints on the API host; see docs/mcp.md. Each MCP pod holds up to waldur.mcp.dbThreads Postgres connections, so waldur.mcp.replicas × waldur.mcp.dbThreads counts against Postgres max_connections, on top of the API and Celery pods.

Extension hooks

Each application deployment (api, worker, beat, homeport) exposes Bitnami-style extension hooks so site-specific configuration can be added without forking the chart:

Two related top-level blocks tune the runtime:

Cross-cutting ingress annotations (merged onto every rendered Ingress) live under ingress.annotations. The canonical use case is controlling DNS TTL via external-dns:

ingress:
  annotations:
    external-dns.alpha.kubernetes.io/ttl: "60"

See docs/components.md for the full reference (section “Tuning and Extension Hooks”).