28
loading...
This website collects cookies to deliver better user experience
helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
litmuschaos
repository to the list of Helm chart repositories. We can verify the repository using the command:helm repo list
litmuschaos
repository listed here. Next, we will create the litmus
namespace as all the litmus infra components will be placed in this namespace. We will do this using the command:kubectl create ns litmus
helm install chaos litmuschaos/litmus-2-0-0-beta --namespace=litmus --devel --set portalScope=namespace
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/litmus-portal-crds.yml
kubectl get svc -n litmus
, we’ll be able to list down all the services running in the litmus namespace. Here you should be able to see the litmusportal-frontend-service
and the litmusportal-server-service
, both of which should be NodePort services, and their corresponding TCP ports should be something like 9091:xxxxx/TCP
where xxxxx
is the node port of the respective service. To access the portal, we need to expose both the node ports of the frontend service and the server service by applying a firewall rule. For the litmusportal-server-service
we can expose only the first NodePort as there are two of them. We can do that using the following two commands:gcloud compute firewall-rules create frontend-service-rule --allow tcp:<NODE_PORT>
gcloud compute firewall-rules create server-service-rule --allow tcp:<NODE_PORT>
<NODE_PORT>
in the first command with your frontend service’s node port and similarly replace the <NODE_PORT>
in the first command with your server service’s node port. Once done, we’re all set to access the Litmus portal. To do that, use the command kubectl get nodes -o wide
to list all the pods in your cluster. You should see something like this::xxxxx
where xxxxx
corresponds to your node port. You should then be directed to the Litmus home screen.admin
and password litmus
. Then you’d be asked to set up a password, which you’d use for any subsequent login. Once done, you’d be able to access the Litmus portal dashboard.https://slack.k8s.io/
#litmus
channel on the Kubernetes slack or use this link after joining the Kubernetes slack: https://slack.litmuschaos.io/