Helm Charts for the Litmus ChaosCenter
- Install helm3
- Kubernetes >= 1.17 (tested on >= 1.19)
The following steps will help you install litmus via helm.
helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
helm repo list
Output:
NAME URL
litmuschaos https://litmuschaos.github.io/litmus-helm/
helm search repo litmuschaos
Output:
NAME CHART VERSION APP VERSION DESCRIPTION
litmuschaos/kube-aws 1.15.0 1.13.8 A Helm chart to install litmus aws chaos experi...
litmuschaos/kubernetes-chaos 2.13.0 1.13.8 A Helm chart to install litmus chaos experiment...
litmuschaos/litmus 2.1.0 2.1.0 A Helm chart to install ChaosCenter
litmuschaos/litmus-1-x 1.16.0 1.13.8 A Helm chart to install litmus infra components...
- The litmus chaoscenter components will be placed in this namespace.
Note: The chaoscenter components can be placed in any namespace, though it is typically placed in "litmus".
kubectl create ns litmus
helm install chaos litmuschaos/litmus --namespace=litmus
## ARM support
## Litmus helm chart depends on bitnami/mongodb, which uses a mongodb image that is not build for ARM arch.
## To install Litmus on an ARM-based machine, you need to provide a custom MongoDB ARM image.
# helm install chaos litmuschaos/litmus --namespace=litmus \
# --set mongodb.image.registry=<put_registry> \
# --set mongodb.image.repository=<put_image_repository> \
# --set mongodb.image.tag=<put_image_tag>
Output:
NAME: chaos
LAST DEPLOYED: Sat Aug 14 15:47:35 2021
NAMESPACE: litmus
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing litmus 😀
Your release is named chaos and it's installed to namespace: litmus.
Visit https://docs.litmuschaos.io to find more info.
With this, you are good to go!! Use the service URLs for the litmusportal-frontend
service (modify service type as needed)
to access the Chaos Center. The default admin credentials are admin/litmus
.
Refer to the documentation
helm uninstall chaos --namespace=litmus
Output:
release "chaos" uninstalled
You can run the following commands if you wish to verify if all desired components are installed successfully.
- Check if the litmus chaoscenter components are running successfully
root@demo:~# kubectl get pods -n litmus
NAME READY STATUS RESTARTS AGE
litmusportal-server-6fd57cc89-6w5pn 1/1 Running 0 57s
litmusportal-auth-server-7b596fff9-5s6g5 1/1 Running 0 57s
litmusportal-frontend-55974fcf59-cxxrf 1/1 Running 0 58s
my-release-mongodb-0 1/1 Running 0 63s
my-release-mongodb-1 1/1 Running 0 63s
my-release-mongodb-2 1/1 Running 0 62s
my-release-mongodb-arbiter-0 1/1 Running 0 64s
NOTE: Litmus agent helm chart support chaos-center 3.0.0-beta3 version onward
Sample helm command to install the external agent in namespace mode
helm install litmus-agent litmuschaos/litmus-agent \
--namespace litmus --create-namespace \
--set "AGENT_NAME=helm-agent" \
--set "AGENT_DESCRIPTION=My first agent deployed with helm !" \
--set "LITMUS_URL=https://chaos-center.domain.com" \ # FOR REMOTE AGENT (INGRESS)
--set "LITMUS_URL=http://litmusportal-frontend-service.litmus.svc.cluster.local:9091" \ # FOR SELF AGENT (SVC)
--set "LITMUS_BACKEND_URL=http://litmusportal-server-service.litmus.svc.cluster.local:9002" \ # FOR SELF AGENT (SVC)
--set "LITMUS_USERNAME=admin" \
--set "LITMUS_PASSWORD=litmus" \
--set "LITMUS_PROJECT_ID=<PROJECT_ID>" \
--set "global.AGENT_MODE=namespace" \
--set "crds.create=false" \
--set "workflow-controller.crds.create=false
Sample helm command to install the external agent in cluster mode
helm install litmus-agent litmuschaos/litmus-agent \
--namespace litmus --create-namespace \
--set "AGENT_NAME=helm-agent" \
--set "AGENT_DESCRIPTION=My first agent deployed with helm !" \
--set "LITMUS_URL=https://chaos-center.domain.com" \ # FOR REMOTE AGENT (INGRESS)
--set "LITMUS_URL=http://litmusportal-frontend-service.litmus.svc.cluster.local:9091" \ # FOR SELF AGENT (SVC)
--set "LITMUS_BACKEND_URL=http://litmusportal-server-service.litmus.svc.cluster.local:9002" \ # FOR SELF AGENT (SVC)
--set "LITMUS_USERNAME=admin" \
--set "LITMUS_PASSWORD=litmus" \
--set "LITMUS_PROJECT_ID=<PROJECT_ID>" \
--set "global.AGENT_MODE=cluster"
We'd love to have you contribute! Please refer to our contribution guidelines for details.