Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61061

Support adding Linux capabilities to Pod templates

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • jenkins/jenkins:2.219 image
      kubernetes v1.17.2
      Plugin version 1.23.2

      Linux capabilities cannot be added to Pod templates.  The closest thing is to use privileged mode.

      I also tried setting the capabilities via yaml override, but I cannot get the resulting yaml to pick up the override values for securityContext:

       

      spec:
        containers:
          - name: jnlp
            securityContext:
              capabilities:
                add:
                  - SYS_ADMIN
                  - DAC_READ_SEARCH
      

       

            Unassigned Unassigned
            pmartin_brierley Patrick Martin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: