Added erebor minio scrape config.
This commit is contained in:
parent
8a7993a596
commit
35b293dc2b
4 changed files with 45 additions and 0 deletions
|
@ -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
|
|
@ -4,4 +4,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
namespace: monitoring
|
||||
resources:
|
||||
- ./externalsecret.yaml
|
||||
- ./helmrelease.yaml
|
||||
- ./scrapeconfigs
|
||||
|
|
|
@ -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"
|
|
@ -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
|
Reference in a new issue