Kubernetes: Support allowPrivilegeEscalation and capabilities backend_options (#6307)

This commit is contained in:
Alex Caston
2026-04-28 17:17:00 +02:00
committed by GitHub
parent 2c801366ee
commit 43dcdc19a1
4 changed files with 138 additions and 31 deletions
@@ -359,6 +359,26 @@ backend_options:
The feature requires Kubernetes v1.30 or above.
:::
You can set `allowPrivilegeEscalation` to `false` to prevent a container from gaining more privileges than its parent process.
```yaml
backend_options:
kubernetes:
securityContext:
allowPrivilegeEscalation: false
```
You can also drop [Linux capabilities](https://man7.org/linux/man-pages/man7/capabilities.7.html) from a container. Adding capabilities is not allowed.
```yaml
backend_options:
kubernetes:
securityContext:
capabilities:
drop:
- ALL
```
### Annotations and labels
You can specify arbitrary [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) and [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) to be set on the Pod definition for a given workflow step using the following configuration: