mirror of https://github.com/sgoudham/k8s
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
535 B
YAML
21 lines
535 B
YAML
# If I screw up the files on a volume that prevent a pod from booting up,
|
|
# I can use this temporary pod which attaches to the volume to fix my mistakes.
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: ubuntu
|
|
spec:
|
|
containers:
|
|
- name: ubuntu
|
|
resources: {}
|
|
image: ubuntu:latest
|
|
command: [ "/bin/bash", "-c", "--" ]
|
|
args: [ "while true; do sleep 30; done;" ]
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: <insert-claim-name-here>
|