Added AWS S3 access token to cluster_setup

This commit is contained in:
Jim Martens 2023-11-06 22:42:07 +01:00
parent 8b125220a3
commit 6585975dfd
4 changed files with 26 additions and 3 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: cluster_setup
version: 0.2.0
version: 0.3.0
type: application
description: "Initial cluster setup"
maintainers:
@ -9,7 +9,7 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: added
description: Added support for hcloud token
description: Added support for thanos AWS S3 token
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc

View File

@ -0,0 +1,10 @@
{{- if .Values.thanos.enabled }}
apiVersion: v1
kind: Secret
metadata:
namespace: {{ .Values.thanos.namespace | default "observability" }}
name: thanos-object-storage-config
data:
thanos.yaml: |-
{{ tpl (.Files.Get "thanos.yaml") . | b64enc }}
{{- end }}

View File

@ -0,0 +1,6 @@
type: s3
config:
bucket: {{ .Values.thanos.bucketName }}
endpoint: s3.{{ .Values.thanos.awsRegion }}.amazonaws.com
access_key: {{ .Values.thanos.accessKey }}
secret_key: {{ .Values.thanos.secretKey }}

View File

@ -9,4 +9,11 @@ hcloud:
enabled: false
token: ""
# if empty, hcloud will be used
namespace: ""
namespace: ""
thanos:
enabled: true
namespace: ""
bucketName: ""
awsRegion: "eu-central-1"
accessKey: ""
secretKey: ""