Created
June 3, 2025 15:52
-
-
Save danpaul81/8ba80f87368cba41759af6e115611511 to your computer and use it in GitHub Desktop.
root pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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