Created
April 4, 2018 21:14
-
-
Save r7vme/59055f5d72dbc607ee7095207e2a0c37 to your computer and use it in GitHub Desktop.
kubernetes pvc test
This file contains hidden or 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
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