thanos-io / kube-thanos

Kubernetes specific configuration for deploying Thanos.
Apache License 2.0
520 stars 177 forks source link

I keep on getting a unbound immediate persistent claim on thanos-store #186

Closed journeytosilius closed 3 years ago

journeytosilius commented 3 years ago

I am following this article : https://programmer.group/how-to-use-thanos-to-implement-prometheus-multi-cluster-monitoring.html

Everything is fine until I use kube-thanos build scritpt, I can build the manifests for store and query, but when I apply the manifest I keep on getting unbound immediate persistent claim on thanos-store. The OBJSTORE_ CONFIG to access minio works for the prometheus sidecar statefulset, but not for the store.

`apiVersion: apps/v1 kind: StatefulSet metadata: labels: app.kubernetes.io/component: object-store-gateway app.kubernetes.io/instance: thanos-store app.kubernetes.io/name: thanos-store app.kubernetes.io/version: v0.17.0 name: thanos-store namespace: monit spec: replicas: 1 selector: matchLabels: app.kubernetes.io/component: object-store-gateway app.kubernetes.io/instance: thanos-store app.kubernetes.io/name: thanos-store serviceName: thanos-store template: metadata: labels: app.kubernetes.io/component: object-store-gateway app.kubernetes.io/instance: thanos-store app.kubernetes.io/name: thanos-store app.kubernetes.io/version: v0.17.0 spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution:

When I add a storageClass to the volumeClaimTemplates spec section, it basically ignores it, no matter what I keep on getting this error. Can you please shed some light in to what's missing here ?

journeytosilius commented 3 years ago

Fixed it, neeeded to change default 'data' on VolumeMounts to the minio object storage