From 16b89dbba11055d35efeaca2130f2076c35f444c Mon Sep 17 00:00:00 2001 From: Eugenio Marzo Date: Sat, 30 Sep 2023 19:13:30 +0200 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8232a02..0454b1f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,15 @@ Through **k-inv** a.k.a. KubeInvaders you can stress a Kubernetes cluster in a f ## Installation +Before you start you need a token from a service account that has [this clusterrole](https://github.com/lucky-sideburn/kubeinvaders/blob/master/helm-charts/kubeinvaders/templates/rbac-cluster.yaml)) + +Assign the clusterrole to a Service Account and get token +```bash +kubectl create sa kinv-sa +kubectl create clusterrolebinding kinv-sa --clusterrole=cluster-admin --serviceaccount=default:kinv-sa +kubectl describe secret $(kubectl get secrets | grep kinv-sa | awk '{ print $1 }') | grep 'token:' | awk '{ print $2 }' +``` + ### Run through Docker or Podman #### Params ##### K8S_TOKEN