Add RC bucket for thanos storage.
This commit is contained in:
parent
6e88e4e3ed
commit
34e35fdc63
3 changed files with 36 additions and 1 deletions
|
@ -32,7 +32,10 @@ spec:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
repository: thanos/thanos
|
repository: thanos/thanos
|
||||||
tag: v0.33.0
|
tag: v0.33.0
|
||||||
existingObjstoreSecret: thanos-s3-secret
|
objstoreConfig:
|
||||||
|
type: s3
|
||||||
|
config:
|
||||||
|
insecure: true
|
||||||
queryFrontend:
|
queryFrontend:
|
||||||
enabled: true
|
enabled: true
|
||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
|
@ -92,3 +95,24 @@ spec:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
valuesFrom:
|
||||||
|
- targetPath: objstoreConfig.config.bucket
|
||||||
|
kind: ConfigMap
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
valuesKey: BUCKET_NAME
|
||||||
|
- targetPath: objstoreConfig.config.endpoint
|
||||||
|
kind: ConfigMap
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
valuesKey: BUCKET_HOST
|
||||||
|
- targetPath: objstoreConfig.config.region
|
||||||
|
kind: ConfigMap
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
valuesKey: BUCKET_REGION
|
||||||
|
- targetPath: objstoreConfig.config.access_key
|
||||||
|
kind: Secret
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
valuesKey: AWS_ACCESS_KEY_ID
|
||||||
|
- targetPath: objstoreConfig.config.secret_key
|
||||||
|
kind: Secret
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
valuesKey: AWS_SECRET_ACCESS_KEY
|
||||||
|
|
|
@ -6,6 +6,7 @@ namespace: monitoring
|
||||||
resources:
|
resources:
|
||||||
- ./externalsecret.yaml
|
- ./externalsecret.yaml
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
|
- ./objectbucketclaim.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: thanos-bucket-replicate-dashboard
|
- name: thanos-bucket-replicate-dashboard
|
||||||
files:
|
files:
|
||||||
|
|
10
kubernetes/apps/monitoring/thanos/app/objectbucketclaim.yaml
Normal file
10
kubernetes/apps/monitoring/thanos/app/objectbucketclaim.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/objectbucket.io/objectbucketclaim_v1alpha1.json
|
||||||
|
---
|
||||||
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: thanos-bucket-v1
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
bucketName: thanos-v1
|
||||||
|
storageClassName: ceph-bucket
|
Reference in a new issue