You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2026/01/20 00:54:00 UTC

[jira] [Resolved] (YUNIKORN-3136) TaskGroup POD security context modification

     [ https://issues.apache.org/jira/browse/YUNIKORN-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wilfred Spiegelenburg resolved YUNIKORN-3136.
---------------------------------------------
    Fix Version/s: 1.9.0
       Resolution: Duplicate

> TaskGroup POD security context modification
> -------------------------------------------
>
>                 Key: YUNIKORN-3136
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-3136
>             Project: Apache YuniKorn
>          Issue Type: Task
>            Reporter: Sabarish kumar
>            Priority: Major
>             Fix For: 1.9.0
>
>
> We are using Yunikorn as a gang scheduler for spark application. Our internal security team check for few mandatory security context parameter, in case if security context not present, the pod will block for execution.
> As part of this gang scheduler, every time when i trigger a spark job, i am able to see that light weight pause TaskGroup(tg-spark-****) Pod getting created to make sure my application get the enough resources or not.
> The actual problem is our security system scan pod for few security value and below value are missing in TG pod and block for execution, this cause our job are not properly allocating resources for execution. Need your help in, How to configure this parameter in TaskGroup pods.
> securityContext:
>   capabilities:
>     drop:
>       - ALL
>   seccompProfile:
>     type: RuntimeDefault
> Below is the Helm command we use for installation
> helm install yunikorn yunikorn/yunikorn -n yunikorn --version 1.7.0 --set embedAdmissionController=false --set enableSchedulerPlugin=true --set service.type=NodePort --set podSecurityContext.runAsNonRoot=true --set podSecurityContext.seccompProfile.type=RuntimeDefault --set schedulerSecurityContext.runAsNonRoot=true --set schedulerSecurityContext.seccompProfile.type=RuntimeDefault --set schedulerSecurityContext.capabilities.drop=\{ALL} --set webSecurityContext.runAsNonRoot=true --set webSecurityContext.seccompProfile.type=RuntimeDefault --set webSecurityContext.capabilities.drop=\{ALL}
> Job level annotation for TaskGroup
> annotations:
>      yunikorn.apache.org/schedulingPolicyParameters: "placeholderTimeoutInSeconds=900 gangSchedulingStyle=Hard"
>      yunikorn.apache.org/allow-preemption: "false"
>      yunikorn.apache.org/task-group-name: "driver"
>      yunikorn.apache.org/task-groups: |-
>        [{
>            "name": "driver",
>            "minMember": 1,
>            "minResource": {
>              "cpu": "2000.0m",
>              "memory": "4.5Gi"
>            }
>          },
>          {
>            "name": "executor",
>            "minMember": 2,
>            "minResource": {
>              "cpu": "2000.0m",
>              "memory": "2.8Gi"
>            }
>        }]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org