Open itspngu opened 2 years ago
@itspngu did you also tried any other thanos component without a pvc (may be with hostpath and emptydir), like receiver or ruler ? And can it work with non-retaining pvc's considering HA needs
Am I following the right thread?
I get this error in the logs of the thanos-store-0 pod (in my Kind cluster):
Error from server (BadRequest): container "thanos-store" in pod "thanos-store-0" is waiting to start: CreateContainerConfigError
and the related event in the description reads:
Warning Failed 13s (x8 over 89s) kubelet Error: secret "thanos-objectstorage" not found
and in the stateful set:
Environment:
OBJSTORE_CONFIG: <set to the key 'thanos.yaml' in secret 'thanos-objectstorage'> Optional: false
HOST_IP_ADDRESS: (v1:status.hostIP)
I tried to add to it, but without success:
volumes:
- emptyDir: {}
name: data
@devattitanhq were you able to figure this out. I'm having the same issue.
Just the indentation...
volumes:
- emptyDir: {}
name: data
According to the docs, backing thanos-store with a PVC is optional:
When compiling a jsonnet configuration not containing
config.volumeClaimTemplate
, the statefulset is never created because the "data" volume can not be found:Logic exists to ensure any passed volumeClaimTemplate is qualified to be used with thanos-store, if a template is passed: https://github.com/thanos-io/kube-thanos/blob/main/jsonnet/kube-thanos/kube-thanos-store.libsonnet#L28
This logic should be extended to include an emptyDir volume definition for "data" in the StatefulSet if no volumeClaimTemplate is passed.