What the persistent volume used for /data should be. Should it be RWX or RWO? #699

Closed
opened 2024-08-16 11:59:28 +00:00 by MaheshZGMAIL · 2 comments
MaheshZGMAIL commented 2024-08-16 11:59:28 +00:00 (Migrated from gitea.com)

There is a lack of documentation on what persistence exactly does. I could understand that data wont survive pod restarts if persistence is off.
For example, is the persistence folder shared across pods? If so is it expected that multiple pods will mount the folder in Writeable state?

I example shows access mode set to RWO 036b469ff9/values.yaml (L275)

Should it be RWX for most practical cases.

There is a lack of documentation on what persistence exactly does. I could understand that data wont survive pod restarts if persistence is off. For example, is the persistence folder shared across pods? If so is it expected that multiple pods will mount the folder in Writeable state? I example shows access mode set to RWO https://gitea.com/gitea/helm-chart/src/commit/036b469ff9d4c2c3fe385eb623d7356157140c69/values.yaml#L275 Should it be RWX for most practical cases.
pat-s commented 2024-08-29 09:37:22 +00:00 (Migrated from gitea.com)

Persistence stores data that should be persisted - I am not sure really I understand what you mean by "what persistence does". You can inspect yourself what is stored under the persistent directory (e.g. repo data).

For example, is the persistence folder shared across pods? If so is it expected that multiple pods will mount the folder in Writeable state?

If you have/want multiple replicas, yes.

If so is it expected that multiple pods will mount the folder in Writeable state?

If you have/want multiple replicas, yes.

Should it be RWX for most practical cases.

No, only if you want to run in HA = multiple replicas. The default is replicas: 1 and hence also uses a RWO. Not all environments have access to a RWX storage class and using it should be a deliberate decision.

Persistence stores data that should be persisted - I am not sure really I understand what you mean by "what persistence does". You can inspect yourself what is stored under the persistent directory (e.g. repo data). > For example, is the persistence folder shared across pods? If so is it expected that multiple pods will mount the folder in Writeable state? If you have/want multiple replicas, yes. > If so is it expected that multiple pods will mount the folder in Writeable state? If you have/want multiple replicas, yes. > Should it be RWX for most practical cases. No, only if you want to run in HA = multiple replicas. The default is `replicas: 1` and hence also uses a RWO. Not all environments have access to a RWX storage class and using it should be a deliberate decision.
pat-s commented 2024-09-19 21:59:00 +00:00 (Migrated from gitea.com)

Closing due to missing response, maybe all Q's were answered (?).

Closing due to missing response, maybe all Q's were answered (?).
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#699
No description provided.