Created
January 9, 2017 04:34
-
-
Save BruceZu/35ef618baaa068e4f67b32fc9b65509e to your computer and use it in GitHub Desktop.
persistent-volumes of k8s kubernetes
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
| http://kubernetes.io/docs/user-guide/persistent-volumes/walkthrough/ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
then prepare yaml file
Test
1 create a test.txt in container and check the content from node
2 delete pod and re deploy it, it is still on the specified node and the status is still there
3 compare with the one without persistent storage pod:
there is not data in the mounted path
http://10.145.101.91:30146/ work
http://10.145.101.91:30146/bugzilla/ does not work
[root@k8s-09 ~]# kubectl expose pod bugzilla.withpv --type=NodePort --name bugzilla-withpv
service "bugzilla-withpv" exposed