Security context of init containers #671
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
I just tried installling the latest Gitea version with the chart on a hardened RKE2 cluster. I set:
but it seems that this does not apply to the init containers:
Is there a way to configure these settings for the init containers at all?
1ac39a6f5d/templates/gitea/deployment.yaml (L92-L93)
Same problem here, I have tried this in the values.yml
and it seems that only the value runAsUser is taken in account.
The values should be inserted as-is based on the template logic.
Can you show that these are not injected into the pod spec at runtime?
Note that "having an/the desired effect" is different again compared to the values not being injected in the first place.
@inzanez It seems you've used the deprecated
securityContext
which is not taken care of in all init containers. UsingcontainerSecurityContext
should do it.To my knowledge, Kubernetes only takes
fsGroup
into account on pod-levelsecurityContext
.