Skip to content

Instantly share code, notes, and snippets.

@tommeramber
Last active June 11, 2025 09:41
Show Gist options
  • Save tommeramber/64b80393073df43bf54d3c9c4443428f to your computer and use it in GitHub Desktop.
Save tommeramber/64b80393073df43bf54d3c9c4443428f to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: rebooter-{{ problematic_node }}
namespace: openshift-monitoring
spec:
nodeName: {{ problematic_node }}
hostPID: true
restartPolicy: Never
serviceAccountName: {{ privileged_sa }}
containers:
- name: rebooter
image: {{ ultimate_image }}
securityContext:
privileged: true
command: [ "sh", "-c" ]
args:
- nsenter --target 1 --mount --uts --ipc --net --pid reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment