Skip to content

Instantly share code, notes, and snippets.

@danpaul81
Created June 3, 2025 15:52
Show Gist options
  • Select an option

  • Save danpaul81/8ba80f87368cba41759af6e115611511 to your computer and use it in GitHub Desktop.

Select an option

Save danpaul81/8ba80f87368cba41759af6e115611511 to your computer and use it in GitHub Desktop.
root pod
apiVersion: v1
kind: Pod
metadata:
name: root-shell
namespace: kube-system
spec:
containers:
- name: shell
image: alpine
command:
- nsenter
args:
- '-t'
- '1'
- '-m'
- '-u'
- '-i'
- '-n'
- tail
- '-f'
- /dev/null
securityContext:
privileged: true
hostNetwork: true
hostPID: true
hostIPC: true
nodeName: node-1-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment