codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

Error deploying immudb on EKS cluster with EBS added #1920

Closed MathieuCesbron closed 6 months ago

MathieuCesbron commented 6 months ago

What happened

Hello, I deployed a immudb statefulset on EKS cluster. To add storage I added Amazon EBS CSI Driver. The persistent volume is created but I get an error in the immudb container:

Screenshot 2024-02-07 at 11 58 45

Basically this error: ERROR: Unable to get or set uuid: open /var/lib/immudb/immudb.identifier: permission denied.

Is there something I should add in the manifest ?

What you expected to happen Not having this error

Thanks,

MathieuCesbron commented 6 months ago

I just realised I should add to my immudb pod:

podSecurityContext:
  runAsNonRoot: true
  runAsUser: 3322
  runAsGroup: 3322
  fsGroup: 3322
  fsGroupChangePolicy: "OnRootMismatch"