Skip to content

Instantly share code, notes, and snippets.

@jkleinkauff
Created June 13, 2024 21:16
Show Gist options
  • Save jkleinkauff/378b222d6e49ef0f2f7d9cfb45098bfe to your computer and use it in GitHub Desktop.
Save jkleinkauff/378b222d6e49ef0f2f7d9cfb45098bfe to your computer and use it in GitHub Desktop.
An immortal pod. So you can bash into it to do anything.
apiVersion: v1
kind: Pod
metadata:
name: bash-pod
namespace:
spec:
containers:
- name: bash-container
image: ubuntu:latest
command: ["/bin/bash", "-c", "while true; do sleep 30; done;"]
volumeMounts:
- mountPath: /mnt/data
name:
volumes:
- name:
persistentVolumeClaim:
claimName: claimName
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment