Created
June 13, 2024 21:16
-
-
Save jkleinkauff/378b222d6e49ef0f2f7d9cfb45098bfe to your computer and use it in GitHub Desktop.
An immortal pod. So you can bash into it to do anything.
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: 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