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): support restricted namespaces and quotas #330
Clusters that enforce Pod Security restricted and a ResourceQuota on limits.cpu (e.g. CERIT-SC, elixir-cloud-aai/generic-issues#122) refuse TESK's task pods today. tesk-api and tesk-core gain the settings for security contexts and resource limits (blocked-by issues); the chart has to expose them, so a Node can run TESK in such a namespace without asking its operators for exceptions.
How?
Chart values (camelCase, as the chart's other values): security contexts for taskmaster and executor pods (pod and container), resource requests/limits for taskmaster, filer and the executors' default; defaults as in the components; a documented "restricted" preset (runAsNonRoot, seccompProfile: RuntimeDefault, allowPrivilegeEscalation: false, capabilities.drop: [ALL]) that stays opt-in, because some clusters refuse RuntimeDefault (CSC Rahti).
Schema checks for the new values.
Smoke test in CI: kind, a namespace with pod-security.kubernetes.io/enforce=restricted and a ResourceQuota with limits.cpu, the preset on, a task with an input and an output reaching COMPLETE.
Docs: a "Restricted clusters and quotas" section in the deployment guide; the values in the configuration reference; upgrade notes.
Bump tesk-api and tesk-core to the releases that contain the settings.
Acceptance criteria
Default values render the same objects as before (apart from the new default limits, documented in the upgrade notes).
The smoke test passes in a restricted, quota'd namespace.
Activity
test(chart): cover restricted-namespace values
test(chart): keep restricted docs and smoke in sync
fix(chart): refuse zero CPU, allow null fsGroup
fix(chart): refuse boolean quantities