Created
June 21, 2016 17:34
-
-
Save dims/916fd6c76b7b2869cfe62242fe4890c2 to your computer and use it in GitHub Desktop.
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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv0001 | |
spec: | |
capacity: | |
storage: 1Gi | |
accessModes: | |
- ReadWriteOnce | |
hostPath: | |
path: /tmp/pvc | |
---- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: myclaim | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 1Gi | |
---- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mypod | |
spec: | |
containers: | |
- name: myfrontend | |
image: gcr.io/google-containers/nginx:1.7.9 | |
volumeMounts: | |
- mountPath: "/var/www/html" | |
name: mypd | |
volumes: | |
- name: mypd | |
persistentVolumeClaim: | |
claimName: myclaim |
Author
dims
commented
Jun 21, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment