Thanos hardlink operation not permitted #7145
Replies: 1 comment
-
I was able to resolve this by adding
to make sure Prometheus and Thanos run as the same user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am deploying thanos v0.30.2 with prometheus operator. But I am seeing below error in thanos-sidecar logs -
err="upload 01HPNCX2PD4QEKY3J8JY3DG4KB: hard link block: hard link file chunks/000001: link /prometheus/01HPNCX2PD4QEKY3J8JY3DG4KB/chunks/000001 /prometheus/thanos/upload/01HPNCX2PD4QEKY3J8JY3DG4KB/chunks/000001: operation not permitted" uploaded=0
This is an issue in creating hard link to prometheus TSDB blocks in thanos/ directory.
Upon debugging, I found that -
I also tried adding a fsgroup 1001 in k8s Pod level securityContext, but even then root user is not able to create hardlink on files owned by nobody user.
Any pointers on how can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions