Skip to content

Instantly share code, notes, and snippets.

@giuliohome
Forked from tcdowney/ubuntu-sleep.yaml
Created November 1, 2023 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuliohome/241ec62efd27386cec8b9bb6892b60c4 to your computer and use it in GitHub Desktop.
Save giuliohome/241ec62efd27386cec8b9bb6892b60c4 to your computer and use it in GitHub Desktop.
Ubuntu Sleep Pod
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
labels:
app: ubuntu
spec:
containers:
- image: ubuntu
command:
- "sleep"
- "604800"
imagePullPolicy: IfNotPresent
name: ubuntu
restartPolicy: Always
@giuliohome
Copy link
Author

@giuliohome
Copy link
Author

kubectl apply -f https://gist.githubusercontent.com/giuliohome/241ec62efd27386cec8b9bb6892b60c4/raw/eaae035f5adca37ca00d4a49f1c1958fe3db89e3/ubuntu-sleep.yaml

kubectl exec -it ubuntu -- /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment