Skip to content

Instantly share code, notes, and snippets.

@manuelcoppotelli
Last active January 10, 2025 10:48
Show Gist options
  • Save manuelcoppotelli/31053ae7a23c9f29ba1beb41ca802310 to your computer and use it in GitHub Desktop.
Save manuelcoppotelli/31053ae7a23c9f29ba1beb41ca802310 to your computer and use it in GitHub Desktop.
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