waldur

by Waldur

Helm chartv8.1.5-rc.5App 8.1.5-rc.5MITVerified publisher

Waldur - Open-Source Cloud Marketplace

About this chart

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:

    • Bundled PostgreSQL subchart: instructions or
    • Integrate with external DB or a Postgres operator: instructions

    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 [email protected]
    

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:

  • <component>.extraEnvVars — extra container env vars
  • <component>.extraEnvVarsCM / <component>.extraEnvVarsSecret — ConfigMap / Secret as envFrom
  • <component>.extraVolumes / <component>.extraVolumeMounts — extra volumes and mounts
  • <component>.podAnnotations / <component>.podLabels — extra pod metadata

Two related top-level blocks tune the runtime:

  • gunicorn.* — timeout, workers, maxRequests, etc. for the API container (renders into GUNICORN_CMD_ARGS)
  • celery.concurrency — CELERYD_CONCURRENCY for worker pods

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").

Deploy waldur with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has waldur 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 chartwaldur is pinned at v8.1.5-rc.5 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