Last active
April 15, 2021 12:20
-
-
Save evrardjp/c696af7ebf08eae0224c67a5103dd342 to your computer and use it in GitHub Desktop.
Try rebooting without privileges
This file contains 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
#!/usr/bin/env bash | |
kubectl exec -it long-running-pids -- kill -SIGRTMIN+15 1 |
This file contains 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: 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