Added erebor minio scrape config.

This commit is contained in:
Joseph Hanson 2023-10-31 13:08:00 -05:00
parent 8a7993a596
commit 35b293dc2b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: erebor
namespace: fediverse
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: erebor-scrape-creds
creationPolicy: Owner
data:
- secretKey: token
remoteRef:
key: erebor_scrape_bearer_token
property: minio

View file

@ -4,4 +4,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitoring
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./scrapeconfigs

View file

@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json
apiVersion: monitoring.coreos.com/v1alpha1
kind: ScrapeConfig
metadata:
name: minio-erebor
namespace: monitoring
spec:
staticConfigs:
- targets: [erebor.hsn.dev]
metricsPath: /minio/v2/metrics/cluster
scheme: HTTPS
authorization:
type: Bearer
credentials:
name: "erebor-scrape-creds"
key: "token"

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitoring
resources:
- ./erebor.yaml