Skip to content

Commit

Permalink
updated k8s manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Prydybailo committed Mar 24, 2023
1 parent 2df3827 commit 4ac102a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ The exporter can be configured using environment variables. Instead of providing
| Enviroment | Description |
| ------- | ------ |
| `LOAD_BALANCER_IDS` | Supported string with specific id `11,22,33` or `all` for scraping metrics from all load balancers in the project |
| `LOAD_BALANCER_IDS_FILE` | Path to a file containing the load balancer IDs |
| `LOAD_BALANCER_IDS_PATH` | Path to a file containing the load balancer IDs |
| `ACCESS_TOKEN` | Hetzner API token |
| `ACCESS_TOKEN_FILE` | Path to a file containing the Hetzner API token |
| `ACCESS_TOKEN_PATH` | Path to a file containing the Hetzner API token |
| Optional `SCRAPE_INTERVAL` | value in seconds, default value is `30 seconds` |
| Optional `SCRAPE_INTERVAL_FILE` | Path to a file containing the scrape interval |
| Optional `SCRAPE_INTERVAL_PATH` | Path to a file containing the scrape interval |

#### Kubernetes usage

Expand Down
13 changes: 13 additions & 0 deletions deploy/kubernetes-manifest/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@ spec:
env:
- name: LOAD_BALANCER_IDS
value: ""
# Uncoment this part if want to use read IDs from file
# - name: LOAD_BALANCER_IDS_PATH
# value: ""

- name: ACCESS_TOKEN
value: ""
# Uncoment this part if want to use read Token from file
# - name: ACCESS_TOKEN_FILE
# value: ""

# Optional
# - name: SCRAPE_INTERVAL
# value: ""
# - name: SCRAPE_INTERVAL_PATH
# value: ""
resources:
requests:
memory: "128Mi"
Expand Down

0 comments on commit 4ac102a

Please sign in to comment.