Skip to content

Commit

Permalink
Created a new StorageClass and configured thanos-stack to use the per… (
Browse files Browse the repository at this point in the history
#301)

* Created a new StorageClass and configured thanos-stack to use the persistent storage

* Commit changes made by code formatters

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
juddin927 and github-actions[bot] authored Nov 14, 2024
1 parent ed46ff9 commit bf03b99
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ terraform.tfstate

#tmp kube config written by tooling container
.kube_config
.env.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp3-expandable
annotations:
meta.helm.sh/release-name: shared-resources
meta.helm.sh/release-namespace: kube-system
storageclass.kubernetes.io/is-default-class: "true"
labels:
app.kubernetes.io/managed-by: Helm
provisioner: ebs.csi.aws.com
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
parameters:
type: gp3
4 changes: 2 additions & 2 deletions k8s-values/values.kube-prometheus-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ prometheus:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: gp2
storageClassName: gp3-expandable
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 8Gi
storage: 16Gi
thanos:
objectStorageConfig:
existingSecret:
Expand Down
6 changes: 6 additions & 0 deletions k8s-values/values.thanos-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ queryFrontend:
enabled: false
storegateway:
enabled: true
persistence:
enabled: true
storageClass: gp3-expandable
accessModes:
- ReadWriteOnce
size: 16Gi
resources:
limits:
memory: "2.5Gi"
Expand Down

0 comments on commit bf03b99

Please sign in to comment.