Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Last active April 15, 2021 12:20
Show Gist options
  • Save evrardjp/c696af7ebf08eae0224c67a5103dd342 to your computer and use it in GitHub Desktop.
Save evrardjp/c696af7ebf08eae0224c67a5103dd342 to your computer and use it in GitHub Desktop.
Try rebooting without privileges
#!/usr/bin/env bash
kubectl exec -it long-running-pids -- kill -SIGRTMIN+15 1
apiVersion: v1
kind: Pod
metadata:
name: long-running-pids
spec:
hostPID: true
containers:
- image: ubuntu:20.04
name: ubuntu
command: ["sh", "-c"]
args: ["sleep 3600"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment