Skip to content

Unable to use in privileged mode #18

@chaoscreater

Description

@chaoscreater

Hi,

I'm trying to run the container in privileged mode and while the container is created and runs fine, it doesn't have privilege. This means it can't access certain Linux binaries like "jq". Any ideas how I can get this to work with privilege mode?

Here's what I've got:

apiVersion: v1
kind: Pod
metadata:
  name: node-debug-shell-kubectl
  namespace: delete-terminating-pods
spec:
  hostNetwork: true
  hostPID: true
  hostIPC: true
  containers:
    - name: shell
      image: wernight/kubectl
      imagePullPolicy: IfNotPresent
      command:
        - nsenter
      args:
        - sleep
        - '14000'
      securityContext:
        privileged: true
  serviceAccount: sa-cronjob-runner
  serviceAccountName: sa-cronjob-runner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions