2023-04-10 19:28:00 +00:00
|
|
|
# Python environment setup for testing
|
|
|
|
|
|
|
|
Install the prometheus [prometheus client](https://github.com/prometheus/client_python)
|
|
|
|
```
|
2023-04-10 19:23:58 +00:00
|
|
|
pip install prometheus-client
|
2023-04-10 19:28:00 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# Deployment
|
|
|
|
|
|
|
|
## Setup etcd running inmemory including backups
|
|
|
|
|
|
|
|
See [here](https://brakkee.org/site/2023/02/14/silencing-kubernetes-at-home/).
|
|
|
|
|
|
|
|
## Build the docker image
|
|
|
|
|
2023-04-10 19:28:42 +00:00
|
|
|
Build the docker image (after changing the docker repo URL in the `docker-compose.yaml` and in the `deployment.yaml`):
|
2023-04-10 19:28:00 +00:00
|
|
|
```
|
2023-04-10 19:32:06 +00:00
|
|
|
docker compose build
|
2023-04-10 19:28:00 +00:00
|
|
|
docker compose push
|
|
|
|
```
|
|
|
|
|
|
|
|
## Deploy onto your cluster
|
|
|
|
|
|
|
|
```
|
|
|
|
kubectl apply -k .
|
|
|
|
```
|
2023-04-10 19:23:58 +00:00
|
|
|
|