Calling pthread_setschedparam with capability SYS_NICE results in error

9/11/2019

I'm trying to provision a server and the server code calls pthread_setschedparam. After doing some search, I know I need to give the container capability of SYS_NICE and so I did, and I've even given it privileged: true; however, the call still returns 2 (ENOENT). Can someone please help? Thanks.

yaml snippet:

        securityContext:
          privileged: true
          capabilities:
            add:
              - SYS_NICE
-- skwokie
kubernetes
linux-capabilities
pthreads

0 Answers