chaos-litmus
by startxfr
Helm chart used to deploy litmus on Openshift or Kubernetes cluster. Litmus is as a chaos engine with chaos git or gui configuration backend. This chart is part of the startx chaos helm chart suite.
About this chart
Chaos Chart : Litmus
This helm chart is used to deploy Litmus on an Openshift or Kubernetes cluster. Litmus is a chaos engineering platform : a web portal (ChaosCenter) where chaos experiments are designed, scheduled and followed as workflows.
Upstream project : litmuschaos/litmus, deployed with the upstream helm chart litmus version 3.26.0 ; images litmuschaos/litmusportal-frontend, litmusportal-server and litmusportal-auth-server, tag 3.26.0, and mongo:4.2.8.
This chart is part of the chaos startx helm chart series focused on deploying various kind of chaos tools for cluster infrastructure or applications chaos-testing.
Requirements and guidelines
Read the startx helm-repository homepage for more information on how to use these resources.
Deploy this helm chart on openshift
1. Connect to your Openshift cluster
oc login -t <token> <cluster-url>
2. Install the repository
helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/
3. Get information about this chart
helm show chart startx/chaos-litmus
4. Install this component
# Create the chaos-litmus namespace
helm install chaos-litmus-project startx/chaos-litmus --set project.enabled=true
# Create the two Secrets holding the credentials (the chart has no default password)
oc -n chaos-litmus create secret generic litmus-admin \
--from-literal=ADMIN_USERNAME=admin --from-literal=ADMIN_PASSWORD="$(openssl rand -base64 18)"
oc -n chaos-litmus create secret generic litmus-mongodb \
--from-literal=mongodb-root-password="$(openssl rand -hex 16)" --from-literal=mongodb-replica-set-key="$(openssl rand -hex 16)"
# Deploy the litmus instance
helm install chaos-litmus-instance startx/chaos-litmus -n chaos-litmus \
--set litmus.enabled=true --set litmus.existingSecret=litmus-admin --set litmus.mongodb.auth.existingSecret=litmus-mongodb
Default values
The default values.yaml deploys
nothing : each part is switched on by its enabled key.
project.enabled=true: 1 namespacechaos-litmus(see the project chart)litmus.enabled=true: the litmus portal (frontend, server, auth-server, MongoDB), 1 SecurityContextConstraintsprivileged-litmuswith its Role and RoleBindinglitmus.expose=true: 1 Routefrontendlitmus.exampleWorkflow=true: 1 Argo Workflowstartx-workflow. Theworkflows.argoproj.iodefinition must exist on the cluster (it comes with a Litmus chaos infrastructure or with Argo Workflows), otherwise the install fails.
Credentials : the chart ships no password. litmus.enabled=true refuses to render, with an explicit message, until
it gets :
- the portal administrator :
litmus.existingSecret(a Secret with the keysADMIN_USERNAMEandADMIN_PASSWORD) orlitmus.adminConfig.ADMIN_PASSWORD; - the MongoDB deployed with the portal :
litmus.mongodb.auth.existingSecret(keysmongodb-root-passwordandmongodb-replica-set-key) orlitmus.mongodb.auth.rootPassword; - with an external MongoDB (
litmus.mongodb.enabled=false) : the keysDB_USERandDB_PASSWORDinlitmus.existingSecret, orlitmus.adminConfig.DBUSERandDBPASSWORD.
Prefer the Secrets : a password given as a value is stored in the helm release and, for MongoDB, written in the portal Deployments by the upstream chart.
Migration from 21.3.390 and earlier (breaking changes) :
- the passwords
litmus(administrator) and1234(MongoDB) are no longer defaults. For an existing release, give the values it was installed with (litmus.adminConfig.ADMIN_PASSWORD=litmus,litmus.mongodb.auth.rootPassword=1234), then change them ; a new install must provide its own. - the
startx-workflowWorkflow is no longer created withlitmus.enabled: setlitmus.exampleWorkflow=trueto keep it. litmus.adminConfig.JWTSecretis removed (the upstream chart does not read it).
| Key | Default | Description |
|---|---|---|
| context.scope | companyname | Name of the global scope for this application (organizational tenant) |
| context.cluster | clustername | Name of the cluster running this application (platform tenant) |
| context.environment | dev | Name of the environment for this application (ex: dev, factory, preprod or prod) |
| context.component | chaos | Component name of this application (logical tenant) |
| context.app | litmus | Application name (functional tenant, default use Chart name) |
| context.version | 3.26.0 | Version name of this application (default use Chart appVersion) |
| project | {...} | Values of the project chart, which creates the namespace |
| project.enabled | false | Create the namespace |
| project.project.name | chaos-litmus | Name of the namespace ; also the namespace of the resources created by this chart |
| litmus | {...} | Values of the upstream litmus chart, passed as is |
| litmus.enabled | false | Deploy the litmus portal and the privileged-litmus SecurityContextConstraints ; requires the credentials above |
| litmus.expose | false | Create the Openshift route frontend to the litmus portal, on top of the route of the upstream chart (litmus.openshift.route) |
| litmus.exampleWorkflow | false | Create the example Argo Workflow startx-workflow |
| litmus.existingSecret | "" | Secret holding ADMIN_USERNAME and ADMIN_PASSWORD (and DB_USER, DB_PASSWORD with an external MongoDB) |
| litmus.adminConfig.ADMIN_PASSWORD | "" | Administrator password, when litmus.existingSecret is empty |
| litmus.mongodb.auth.existingSecret | "" | Secret holding mongodb-root-password and mongodb-replica-set-key |
| litmus.mongodb.auth.rootPassword | "" | MongoDB root password, when litmus.mongodb.auth.existingSecret is empty |
| litmus.portal | {...} | Frontend, GraphQL server and authentication server of the portal |
Values files
- startx-project : values-startx-project.yaml, namespace
startx-chaos-litmusonly - startx-deploy : values-startx-deploy.yaml, litmus portal in the namespace
startx-chaos-litmus; it expects the Secretslitmus-adminandlitmus-mongodbin that namespace (see step 4 above)
helm install chaos-litmus-project startx/chaos-litmus -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/chaos-litmus/values-startx-project.yaml
helm install chaos-litmus-instance startx/chaos-litmus -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/chaos-litmus/values-startx-deploy.yaml -n startx-chaos-litmus
Usage examples
Default : namespace then portal
Two releases of the same chart, the namespace first, with the credentials in the Secrets litmus-admin and
litmus-mongodb (created as in step 4 above).
helm install chaos-litmus-project startx/chaos-litmus --set project.enabled=true
helm install chaos-litmus-instance startx/chaos-litmus -n chaos-litmus \
--set litmus.enabled=true --set litmus.existingSecret=litmus-admin --set litmus.mongodb.auth.existingSecret=litmus-mongodb
Minimal : portal in an existing namespace
The namespace already exists, with its two Secrets ; the portal is reached with oc port-forward.
# my-litmus-minimal-values.yaml
project:
enabled: false
project:
name: my-chaos
litmus:
enabled: true
existingSecret: litmus-admin
mongodb:
auth:
existingSecret: litmus-mongodb
helm install chaos-litmus startx/chaos-litmus -f my-litmus-minimal-values.yaml -n my-chaos
oc port-forward -n my-chaos svc/chaos-litmus-frontend-service 9091:9091
Advanced : exposed portal, example workflow and public URL
The portal is exposed with a route, the public URL is given to the server and the example workflow is created (the Argo Workflow definition must exist).
# my-litmus-values.yaml
context:
scope: myorg
cluster: mycluster
environment: prod
component: chaos
app: litmus
litmus:
enabled: true
expose: true
exampleWorkflow: true
existingSecret: litmus-admin
mongodb:
auth:
existingSecret: litmus-mongodb
portal:
server:
graphqlServer:
genericEnv:
CHAOS_CENTER_UI_ENDPOINT: https://frontend-chaos-litmus.apps.mycluster.example.com
helm install chaos-litmus-instance startx/chaos-litmus -f my-litmus-values.yaml -n chaos-litmus
Deploy with ArgoCD
One AppProject and two Applications : chaos-litmus-project (wave 1, the namespace) then chaos-litmus-instance (wave 5, the portal and its route).
The instance Application reads the credentials from the Secrets litmus-admin and litmus-mongodb : create them in
the chaos-litmus namespace (step 4 above, or an ExternalSecret) once the project Application is synced.
The files are in examples/argocd.
git clone https://github.com/startxfr/helm-repository.git
cd helm-repository/charts/chaos-litmus
oc apply -k examples/argocd/
Each Application sets the enabled key of the other part to false, so that the two Applications never render the
same resource. Delete chaos-litmus-instance first, wait for it to be gone, then delete chaos-litmus-project (it has no
finalizer : a namespace can be slow to terminate).
History
| Release | Date | Description |
|---|---|---|
| 16.19.59 | 2024-12-09 | Align all chart to the 16.19.59 release |
| 17.14.90 | 2025-04-30 | Publish stable release for 4.17 version |
| 18.11.71 | 2025-11-27 | Align all charts to the same release |
| 18.23.0 | 2026-02-28 | Start 4.19 branch |
| 19.23.17 | 2026-03-02 | Align all dependencies to chart v19.23.11 |
| 20.14.15 | 2026-03-02 | Update all charts to OCP version 4.20.14 |
| 21.3.0 | 2026-03-02 | Update all chart to OCP version 4.21.3 |
| 21.3.203 | 2026-06-24 | Improve chaos-litmus options |
| 21.3.278 | 2026-08-14 | add centigpu |
| 21.3.300 | 2026-10-21 | Add new charts and align all to this release |
| 21.3.309 | 2026-10-27 | Adding new charts perconna and align all to v21.3.309 |
| 21.3.313 | 2026-11-04 | Add cluster-unifai and cluster-qdrant, align all charts to 21.3.313 |
| 21.3.321 | 2026-11-05 | Adding external secret management |
| 21.3.371 | 2026-11-19 | Add Sail, oauthProxy, DSCInitialization, spot machines and annotations support |
| 21.3.373 | 2026-11-19 | align inter-chart dependency pins |
| 21.3.377 | 2026-11-19 | full repository release: aligned pins, ArgoCD source fix, schemas and docs |
| 21.3.379 | 2026-11-19 | conventions wave: spelling, READMEs, ArgoCD examples and values-app, oauth switch |
| 21.3.389 | 2026-11-19 | full repository release: HTTPS dependency URLs, dependency-ordered release, schema guard, docs and examples |
| 21.3.390 | 2026-11-20 | full repository release: test fix, keepalived README, aligned pins |
| 21.3.391 | 2026-11-21 | chaos charts: krkn v5.2.15, new chaos-pipeline chart, security fixes for litmus and monkey; breaking, see README migration notes |
| 21.3.392 | 2026-11-21 | full repository release: chaos-pipeline run parameters and authenticated health check, aligned pins |
| 21.3.397 | 2026-11-21 | stable repository release 21.3.397: all charts aligned, unifai delegation cap documentation |
| 21.3.398 | 2026-11-21 | project: dockercfg existi |
Deploy chaos-litmus with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has chaos-litmus 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartchaos-litmus is pinned at v21.3.418 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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