Skip to content

Instantly share code, notes, and snippets.

@teopost
Forked from tcdowney/ubuntu-sleep.yaml
Last active October 31, 2023 09:55
Show Gist options
  • Save teopost/0ae4af9d5b6f2fa79283dca29fd77f1c to your computer and use it in GitHub Desktop.
Save teopost/0ae4af9d5b6f2fa79283dca29fd77f1c to your computer and use it in GitHub Desktop.
Ubuntu Sleep Pod
# 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