Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use in privileged mode #18

Open
chaoscreater opened this issue Aug 1, 2024 · 0 comments
Open

Unable to use in privileged mode #18

chaoscreater opened this issue Aug 1, 2024 · 0 comments

Comments

@chaoscreater
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant