Last active
January 10, 2025 10:48
-
-
Save manuelcoppotelli/31053ae7a23c9f29ba1beb41ca802310 to your computer and use it in GitHub Desktop.
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: | |
generateName: node-shell- | |
namespace: kube-system | |
spec: | |
containers: | |
- image: alpine:3.9 | |
name: shell | |
command: ["nsenter"] | |
args: ["-t", "1", "-m", "-u", "-i", "-n", "sleep", "14000"] | |
securityContext: | |
privileged: true | |
restartPolicy: Never | |
terminationGracePeriodSeconds: 0 | |
hostPID: true | |
hostIPC: true | |
hostNetwork: true | |
tolerations: | |
- operator: Exists | |
nodeSelector: | |
kubernetes.io/hostname: __NODE_NAME__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment