API for playground management on zerofiltre grafana instance and k8s cluster
curl --location 'https://provisioner.zerofiltre.tech/provisioner' \
--header 'Authorization: <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"full_name":"username",
"email":"email_address"
}'
This will create :
- a k8s namespace named after
username
- a k8s user + password : get it from the response body
- a grafana user + password, same as k8s credentials
curl --location 'https://provisioner.zerofiltre.tech/provisioner/clean' \
--header 'Authorization: <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"username"
}'
This will delete everything that has been created for that user.
python -m venv .venv
the .venv dir will be created à the root of the projetct
At the root of the project
- On windows
.venv\Scripts\activate
- On linux
source .venv/bin/activate
Create a file .env at the root of the project then fill it with the content located here
✍🏼 You must have access to our vault !
Replace the xxx placeholders with the values located in the same dir in the vault. Then:
python run.py