mirror of
https://github.com/resmoio/kubernetes-event-exporter.git
synced 2026-02-14 14:39:50 +00:00
Added example for secret expansion, updated to go 1.20
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -6,10 +6,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.19
|
||||
- name: Set up Go 1.20
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: 1.20
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
.idea/
|
||||
.DS_Store
|
||||
fork.sh
|
||||
.DS_Store
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.19 AS builder
|
||||
FROM golang:1.20 AS builder
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
@@ -68,6 +68,11 @@ receivers:
|
||||
* A route can have many sub-routes, forming a tree.
|
||||
* Routing starts from the root route.
|
||||
|
||||
## Using Secrets
|
||||
|
||||
In your config file, you can refer to environment variables as `${API_KEY}` therefore you can use ConfigMap or Secrets
|
||||
to keep the config file clean of secrets.
|
||||
|
||||
## Troubleshoot "Events Discarded" warning:
|
||||
|
||||
- If there are `client-side throttling` warnings in the event-exporter log:
|
||||
|
||||
@@ -36,6 +36,7 @@ receivers:
|
||||
hosts:
|
||||
- "http://localhost:9200"
|
||||
indexFormat: "kube-events-{2006-01-02}"
|
||||
apiKey: ${ELASTIC_API_KEY}
|
||||
- name: "opensearch-dump"
|
||||
opensearch:
|
||||
hosts:
|
||||
|
||||
Reference in New Issue
Block a user