litmus/litmus-portal
Amit Kumar Das 26d5bbb3c3
type(bug-fix): Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field for template (#2832)
* Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field
* Added authorization for api

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>
2021-05-26 14:28:42 +05:30
..
authentication Adding image registry graphql APIs (Create, Get, Delete, Update, List) (#2774) 2021-05-12 02:47:42 +05:30
cluster-agents type(bug-fix): Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field for template (#2832) 2021-05-26 14:28:42 +05:30
frontend type(bug-fix): Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field for template (#2832) 2021-05-26 14:28:42 +05:30
graphql-server type(bug-fix): Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field for template (#2832) 2021-05-26 14:28:42 +05:30
platforms/okteto changing all docker image repo name to litmuschaos (#2801) 2021-05-14 18:15:14 +05:30
Makefile event tracker deps 2021-02-01 17:31:57 +05:30
README.md Upgrading to beta7 (#2816) 2021-05-17 17:35:09 +05:30
cluster-k8s-manifest.yml changing all docker image repo name to litmuschaos (#2801) 2021-05-14 18:15:14 +05:30
ingress.yml Adding {Ingress, ClusterIP, LoadBalancer} support for connecting external agent to the server (#2598) 2021-04-12 20:17:49 +05:30
litmus-portal-crds.yml chore(1.13.5): Adding manifests for 1.13.5 & crds updation (#2809) 2021-05-15 21:00:59 +05:30
namespaced-k8s-template.yml changing all docker image repo name to litmuschaos (#2801) 2021-05-14 18:15:14 +05:30
run.sh Added branch and tag clone functionality and env for branch/tag for MyHub (#2724) 2021-04-20 21:49:39 +05:30

README.md

Litmus Portal

Litmus-Portal provides console and UI experience for managing, monitoring, and events around chaos workflows. Chaos workflows consist of a sequence of experiments run together to achieve the objective of introducing some kind of fault into an application or the Kubernetes platform.

Platforms Support

  • Minikube
  • GKE
  • KIND
  • EKS
  • Okteto Cloud

Pre-requisites

  • Kubernetes 1.11 or later.

Installation

Applying k8s manifest

Litmus-2.0.0-Beta7 (Stable)

kubectl apply -f https://litmuschaos.github.io/litmus/2.0.0-Beta/litmus-2.0.0-Beta.yaml

Or

Master (Latest) Cluster scope. Install in litmus namespace by default.

kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/cluster-k8s-manifest.yml

Or

Master (Latest) Namespaced scope. Replace <namespace> with the desired namespace.

export LITMUS_PORTAL_NAMESPACE="<namespace>"
kubectl create ns ${LITMUS_PORTAL_NAMESPACE}
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/litmus-portal-crds.yml
curl https://raw.githubusercontent.com/litmuschaos/litmus/master/docs/2.0.0-Beta/litmus-namespaced-2.0.0-Beta.yaml --output litmus-portal-namespaced-k8s-template.yml
envsubst < litmus-portal-namespaced-k8s-template.yml > ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml
kubectl apply -f ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml -n ${LITMUS_PORTAL_NAMESPACE}

Configuration Options for Cluster scope.

  • litmus-portal-operations-config configmap.

    AgentNamespace: litmus

  • All environment variables.

Configuration Options for Namespace scope.

  • litmus-portal-operations-config configmap.

    AgentNamespace: ${LITMUS_PORTAL_NAMESPACE}

  • All environment variables.

Retrieving external url to access the litmus portal

GKE/Okteto Cloud/EKS
export NODE_NAME=$(kubectl -n $LITMUS_PORTAL_NAMESPACE get pod  -l "component=litmusportal-frontend" -o=jsonpath='{.items[*].spec.nodeName}')
export EXTERNAL_IP=$(kubectl -n $LITMUS_PORTAL_NAMESPACE get nodes $NODE_NAME -o jsonpath='{.status.addresses[?(@.type=="ExternalIP")].address}')
export NODE_PORT=$(kubectl -n $LITMUS_PORTAL_NAMESPACE get -o jsonpath="{.spec.ports[0].nodePort}" services litmusportal-frontend-service)
echo "URL: http://$EXTERNAL_IP:$NODE_PORT"

Minikube

minikube -n $LITMUS_PORTAL_NAMESPACE --url litmusportal-frontend-service

Note: Default username: admin and password: litmus

User Guide for Litmus Portal

Litmus-Portal provides console or UI experience for managing, monitoring, and events round chaos workflows. Chaos workflows consist of a sequence of experiments run together to achieve the objective of introducing some kind of fault into an application or the Kubernetes platform.

View the User Guide here

Uninstallation

Litmus-2.0.0-Beta7 (Stable)

kubectl delete -f https://litmuschaos.github.io/litmus/2.0.0-Beta/litmus-2.0.0-Beta.yaml

Or

Master (Latest) Cluster scope. Uninstall in litmus namespace by default. (Only deleting litmus portal components)

kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/cluster-k8s-manifest.yml

Or

Master (Latest) Namespaced scope. Replace <namespace> with the desired namespace.

export LITMUS_PORTAL_NAMESPACE="<namespace>"
kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/litmus-portal-crds.yml
kubectl delete -f ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml -n ${LITMUS_PORTAL_NAMESPACE}

Tech Stack

  • Frontend
    • TypeScript
    • JavaScript
    • ReactJS
    • Apollo GraphQL client
    • MaterialUI
  • Backend
    • GoLang
    • GQLGEN GraphQL Server
  • Database
    • MongoDB
Additional information