Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit befd73a

Browse files
authored
Clarify comments about KUBERNETES_RUN_AS_USER and KUBERNETES_RUN_AS_GROUP (#4417)
### Description Add clarifying comments to the `KUBERNETES_RUN_AS_USER` and `KUBERNETES_RUN_AS_ROOT` settings, and default them to blank instead of `"-1"` Blank is the new default - `-1` is not allowed anymore. ### Test plan Documentation/comments only.
1 parent 80f865c commit befd73a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

configure/executors/k8s/executor.ConfigMap.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ data:
2424
# Either set this or EXECUTOR_QUEUE_NAME.
2525
EXECUTOR_QUEUE_NAMES: "batches,codeintel"
2626
EXECUTOR_KUBERNETES_RESOURCE_REQUEST_MEMORY: "5Gi"
27-
# KUBERNETES_RUN_AS_USER: "-1"
28-
# KUBERNETES_RUN_AS_GROUP: "-1"
27+
# KUBERNETES_RUN_AS_USER and KUBERNETES_RUN_AS_GROUP can be used to set
28+
# the UID and GID of the Pods in which Batch Change and Code Intel Jobs run.
29+
# If not set, or if set to blank, those Pods will use the UID and GID
30+
# of the containers, which often defaults to `root`,
31+
# violating the security restrictions of many cluster deployments.
32+
KUBERNETES_RUN_AS_USER: ""
33+
KUBERNETES_RUN_AS_GROUP: ""
2934
# KUBERNETES_FS_GROUP: "1000"

0 commit comments

Comments
 (0)