doc(k8s): add in/out cluster api querying procedure
Cadoles/bouncer/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2024-03-28 09:10:16 +01:00
parent 16305469c5
commit 35717429a2
1 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,8 @@ By default, with you host web browser, open http://localhost:9000, you should se
### Using the admin API ### Using the admin API
#### From inside the cluster
1. Open shell in bouncer-admin pod 1. Open shell in bouncer-admin pod
```shell ```shell
@ -59,6 +61,20 @@ By default, with you host web browser, open http://localhost:9000, you should se
bouncer admin proxy query bouncer admin proxy query
``` ```
#### From outside the cluster
1. Retrieve the authentication token from the generated secret
```shell
TOKEN=$(kubectl get secret -n bouncer-dev -o jsonpath="{.data.token}" bouncer-admin-writer-token | base64 -d)
```
2. Use the `bouncer` admin client to query the admin API
```shell
./bouncer admin proxy query -t "${TOKEN}" --server http://127.0.0.1:9999
```
## Benchmarking ## Benchmarking
You can use [`siege`](https://github.com/JoeDog/siege) to benchmark your instance with the Cadoles proxy. You can use [`siege`](https://github.com/JoeDog/siege) to benchmark your instance with the Cadoles proxy.