theshire/.archive/kubernetes/observability/loki/app/externalsecret.yaml

29 lines
733 B
YAML
Raw Normal View History

2024-05-08 19:12:23 -05:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: loki
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: loki-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
2024-05-08 19:51:56 -05:00
S3_HOST: s3.hsn.dev
S3_BUCKET: "{{ .minio_thanos_bucket_name }}"
2024-05-08 19:12:23 -05:00
S3_ACCESS_KEY: "{{ .minio_loki_access_key }}"
S3_SECRET_KEY: "{{ .minio_loki_secret_key }}"
2024-05-08 19:51:56 -05:00
S3_REGION: us-east-1
2024-05-08 19:12:23 -05:00
dataFrom:
- extract:
key: minio
rewrite:
- regexp:
source: "(.*)"
target: "minio_$1"