You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(chart): set the executors' security context #264
Part of #128. Executors run with the user of their image, often root. tesk-api can already give the executor pods a security context: it reads one at startup from a ConfigMap named in the environment variable CONFIGMAP (key securityContext, or the one in CONFIGMAPKEY; namespace CONFIGMAPNAMESPACE), with the fields runAsUser, runAsGroup, fsGroup and nonRoot (KubernetesObjectsSupplier.createSecurityContext). The chart doesn't expose this, and the setting is undocumented.
fsGroup also lets executors that run as non-root use the files that the filer (running as root) stages on the task's PVC (#113), on volume types whose ownership Kubernetes manages.
How?
An opt-in chart value (e.g. tesk.executor.securityContext, with runAsUser, runAsGroup, fsGroup and runAsNonRoot), empty by default: no ConfigMap and no CONFIGMAP variable, so executors run as today.
When set: a ConfigMap of the release with these fields, passed to tesk-api with CONFIGMAP.
Schema checks for the fields (non-negative integers, a boolean).
Docs: the value, its effect on executor pods only (not the taskmaster or filers), fsGroup for staged files, and its limits (volume types without ownership management, images that need root).
Activity