Skip to content

Commit 2399834

Browse files
fix(iris): add SYS_PTRACE to controller pod for profiling (#4418)
Adds `SYS_PTRACE` capability to the controller Deployment so py-spy and memray profiling works on the controller pod. Closes #4416 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Rafal Wojdyla <ravwojdyla@users.noreply.github.com>
1 parent f134ed4 commit 2399834

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/iris/src/iris/cluster/providers/k8s/controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def _build_controller_deployment(
174174
],
175175
"ports": [{"containerPort": port}],
176176
"env": s3_env_vars,
177+
"securityContext": {"capabilities": {"add": ["SYS_PTRACE"]}},
177178
"resources": controller_resources,
178179
"volumeMounts": [
179180
{"name": "config", "mountPath": "/etc/iris", "readOnly": True},

0 commit comments

Comments
 (0)