From 2efb2e0a71dc6e4d442d5d3ec9d3233fed4d6061 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 10 Sep 2024 22:10:54 +0200 Subject: [PATCH] Add minio external secret --- minio/minio-tenant-es.yaml | 27 +++++++++++++++++++++++++++ minio/values-tenant.yaml | 8 ++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 minio/minio-tenant-es.yaml diff --git a/minio/minio-tenant-es.yaml b/minio/minio-tenant-es.yaml new file mode 100644 index 0000000..afb80c0 --- /dev/null +++ b/minio/minio-tenant-es.yaml @@ -0,0 +1,27 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: minio-tenant-es +spec: + refreshInterval: "15s" + secretStoreRef: + name: vault-backend + kind: ClusterSecretStore + target: + name: myminio-env-configuration + dataFrom: + - key: minio-tenant-root + property: config.env + + # # metadataPolicy to fetch all the labels in JSON format + # - secretKey: tags + # remoteRef: + # metadataPolicy: Fetch + # key: foo + + # # metadataPolicy to fetch a specific label (dev) from the source secret + # - secretKey: developer + # remoteRef: + # metadataPolicy: Fetch + # key: foo + # property: dev \ No newline at end of file diff --git a/minio/values-tenant.yaml b/minio/values-tenant.yaml index 87d1b64..4229a2a 100644 --- a/minio/values-tenant.yaml +++ b/minio/values-tenant.yaml @@ -10,10 +10,10 @@ tenant: configuration: name: myminio-env-configuration - configSecret: - name: myminio-env-configuration - accessKey: minio - secretKey: minio123 + # configSecret: + # name: myminio-env-configuration + # accessKey: minio + # secretKey: minio123 pools: - servers: 1