Skip to content

Instantly share code, notes, and snippets.

@ThomasSchoenbeck
Created June 24, 2021 10:11
Show Gist options
  • Save ThomasSchoenbeck/1e5899a88fbcdae3a628023359e3d340 to your computer and use it in GitHub Desktop.
Save ThomasSchoenbeck/1e5899a88fbcdae3a628023359e3d340 to your computer and use it in GitHub Desktop.
volume test pod
apiVersion: v1
kind: Pod
metadata:
name: alpine-volume-test-pod
labels:
app: alpine-volume-test
spec:
containers:
- name: alpine-volume-test-container
image: <image-registry>/alpine:3.13.5
command: ["sh", "-c", "tail -f /dev/null"]
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 10m
memory: 12Mi
imagePullPolicy: Always
volumeMounts:
- name: testmount
mountPath: /selfmnt/
volumes:
- name: testmount
persistentVolumeClaim:
claimName: <claim-name>
imagePullSecrets:
- name: <secret-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment