Skip to content

Instantly share code, notes, and snippets.

@revolunet
Created July 28, 2022 10:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revolunet/5247519186eb9ece71ad074ee8141be9 to your computer and use it in GitHub Desktop.
Save revolunet/5247519186eb9ece71ad074ee8141be9 to your computer and use it in GitHub Desktop.
pod + volume
apiVersion: v1
kind: Pod
metadata:
annotations:
labels:
application: sre
component: pe-debug
name: pe-debug
namespace: sre
spec:
containers:
- command:
- bash
- "sleep 100000"
env:
- name: hello
value: world
envFrom:
- secretRef:
name: cronjob-storage
image: alpine
name: debug-container
volumeMounts:
- mountPath: /mnt/pefiles
name: pefiles
volumes:
- name: pefiles
persistentVolumeClaim:
claimName: pefiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment