Update README.md

This commit is contained in:
Eugenio Marzo
2023-09-30 19:13:30 +02:00
committed by GitHub
parent 474e18ae60
commit 16b89dbba1
+9
View File
@@ -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