Skip to content

Instantly share code, notes, and snippets.

@r7vme
Created April 4, 2018 21:14
Show Gist options
  • Save r7vme/59055f5d72dbc607ee7095207e2a0c37 to your computer and use it in GitHub Desktop.
Save r7vme/59055f5d72dbc607ee7095207e2a0c37 to your computer and use it in GitHub Desktop.
kubernetes pvc test
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: myclaim1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
kind: Pod
apiVersion: v1
metadata:
name: mypod1
spec:
containers:
- name: myfrontend
image: busybox
command:
- sleep
- "3600"
volumeMounts:
- mountPath: "/data"
name: mypd
volumes:
- name: mypd
persistentVolumeClaim:
claimName: myclaim1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment