Use fsGroup
instead of initContainer for setting appropriate file owners.
#803
Labels
area/quality
Output qualification (tests, checks, scans, automation in general, etc.) related
kind/enhancement
Enhancement, improvement, extension
How to categorize this issue?
/area quality
/kind enhancement
What would you like to be added:
Currently etcd uses initContainers to change file owners:
etcd-druid/pkg/component/etcd/statefulset/statefulset.go
Lines 491 to 525 in 4cb6e5c
I would like these initContainers to be removed and their functionality replaced with the use of
fsGroup: 65532
added here:etcd-druid/pkg/component/etcd/statefulset/statefulset.go
Lines 526 to 530 in 4cb6e5c
This will set group owner
65532
for mounted files and would make these files accessible for the etcd pod.Why is this needed:
Remove unnecessary etcd containers and avoid changing owners on PV
The text was updated successfully, but these errors were encountered: