Update thanos config and rook config.

This commit is contained in:
Joseph Hanson 2023-09-29 13:03:48 +00:00
parent 29bd8096e0
commit 1fc12c300c
7 changed files with 50 additions and 50 deletions

View file

@ -21,7 +21,9 @@ env:
includes: includes:
volsync: .taskfiles/VolSync/Tasks.yaml volsync: .taskfiles/VolSync/Tasks.yaml
precommit: .taskfiles/PreCommit/Tasks.yaml precommit: .taskfiles/PreCommit/Tasks.yaml
rook: .taskfiles/rook/Taskfile.yaml rook:
taskfile: ".taskfiles/rook"
dir: .taskfiles/rook
tasks: tasks:

View file

@ -0,0 +1,31 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: thanos
namespace: monitoring
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: thanos-s3-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
objstore.yml: |-
type: s3
config:
access_key: {{ .minio_thanos_access_key }}
bucket: thanos
endpoint: {{ .minio_s3_host }}
region: us-east-1
secret_key: {{ .minio_thanos_secret_key }}
dataFrom:
- extract:
key: minio
rewrite:
- regexp:
source: "(.*)"
target: "minio_$1"

View file

@ -35,10 +35,7 @@ spec:
registry: quay.io registry: quay.io
repository: thanos/thanos repository: thanos/thanos
tag: v0.32.3 tag: v0.32.3
objstoreConfig: existingObjstoreSecret: thanos-s3-secret
type: s3
config:
insecure: true
queryFrontend: queryFrontend:
enabled: true enabled: true
replicaCount: 3 replicaCount: 3
@ -71,14 +68,14 @@ spec:
persistence: persistence:
enabled: true enabled: true
storageClass: ceph-block storageClass: ceph-block
size: 100Gi size: 20Gi
storegateway: storegateway:
enabled: true enabled: true
replicaCount: 3 replicaCount: 3
persistence: persistence:
enabled: true enabled: true
storageClass: ceph-block storageClass: ceph-block
size: 20Gi size: 10Gi
ruler: ruler:
enabled: true enabled: true
replicaCount: 3 replicaCount: 3
@ -99,29 +96,8 @@ spec:
persistence: persistence:
enabled: true enabled: true
storageClass: ceph-block storageClass: ceph-block
size: 20Gi size: 5Gi
metrics: metrics:
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

View file

@ -4,7 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: monitoring namespace: monitoring
resources: resources:
- ./objectbucketclaim.yaml - ./externalsecret.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
configMapGenerator: configMapGenerator:
- name: thanos-bucket-replicate-dashboard - name: thanos-bucket-replicate-dashboard

View file

@ -1,9 +0,0 @@
---
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: thanos-bucket-v1
namespace: monitoring
spec:
bucketName: thanos-v1
storageClassName: ceph-bucket

View file

@ -53,15 +53,15 @@ spec:
config: config:
osdsPerDevice: "1" osdsPerDevice: "1"
nodes: nodes:
- name: "valinor-1" - name: "aule"
devices: devices:
- name: /dev/disk/by-id/scsi-0HC_Volume_37231496 - name: /dev/disk/by-id/scsi-0HC_Volume_37460833
- name: "valinor-2" - name: "eonwe"
devices: devices:
- name: /dev/disk/by-id/scsi-0HC_Volume_37231521 - name: /dev/disk/by-id/scsi-0HC_Volume_37460887
- name: "valinor-3" - name: "arlen"
devices: devices:
- name: /dev/disk/by-id/scsi-0HC_Volume_37231596 - name: /dev/disk/by-id/scsi-0HC_Volume_37460897
ingress: ingress:
ingressClassName: "nginx" ingressClassName: "nginx"

View file

@ -2,11 +2,11 @@
# shellcheck disable=2312 # shellcheck disable=2312
pushd integrations >/dev/null 2>&1 || exit 1 pushd integrations >/dev/null 2>&1 || exit 1
rm -rf cni/charts #rm -rf cni/charts
envsubst < ../../kubernetes/apps/kube-system/cilium/app/values.yaml > cni/values.yaml #envsubst < ../../kubernetes/apps/kube-system/cilium/app/values.yaml > cni/values.yaml
kustomize build --enable-helm cni | kubectl apply -f - #kustomize build --enable-helm cni | kubectl apply -f -
rm cni/values.yaml #rm cni/values.yaml
rm -rf cni/charts #rm -rf cni/charts
rm -rf kubelet-csr-approver/charts rm -rf kubelet-csr-approver/charts
envsubst < ../../kubernetes/apps/system/kubelet-csr-approver/app/values.yaml > kubelet-csr-approver/values.yaml envsubst < ../../kubernetes/apps/system/kubelet-csr-approver/app/values.yaml > kubelet-csr-approver/values.yaml