-
-
Save teopost/0ae4af9d5b6f2fa79283dca29fd77f1c to your computer and use it in GitHub Desktop.
Ubuntu Sleep Pod
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
# kubectl apply -f https://gist.githubusercontent.com/teopost/0ae4af9d5b6f2fa79283dca29fd77f1c/raw/eaae035f5adca37ca00d4a49f1c1958fe3db89e3/ubuntu-sleep.yaml | |
# kubectl exec -it ubuntu -- /bin/bash | |
# apt update && apt-get install -y telnet curl net-tools ssh nmap iputils-ping bind9-utils | |
# oppure: | |
# kubectl run -i --tty busybox --image=busybox --restart=Never -- sh | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- image: ubuntu | |
command: | |
- "sleep" | |
- "604800" | |
imagePullPolicy: IfNotPresent | |
name: ubuntu | |
restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment