{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments/97391359","pull_request_review_id":17999227,"id":97391359,"diff_hunk":"@@ -0,0 +1,196 @@\n+---\n+redirect_from:\n+- \"/docs/user-guide/persistent-volumes/walkthrough/\"\n+- \"/docs/user-guide/persistent-volumes/walkthrough.html\"\n+title: Configuring a Pod to Use a PersistentVolume for Storage\n+---\n+\n+{% capture overview %}\n+\n+This page shows how to configure a Pod to use a PersistentVolume for stoarage.\n+\n+{% endcapture %}\n+\n+{% capture prerequisites %}\n+\n+You need to have a Kubernetes cluster that has only one Node, and the kubectl\n+command-line tool must be configured to communicate with your cluster. If you\n+do not already have a single-node cluster, you can create one by using\n+[Minikube](/docs/getting-started-guides/minikube).\n+\n+{% endcapture %}\n+\n+{% capture steps %}\n+\n+## Creating an index.html file on your Node\n+\n+Open a shell to the Node in your cluster. How you open a shell depends on how\n+you set up your cluster. For example, if you are using Minikube, you can open a\n+shell to your Node by entering `minikube ssh`.\n+\n+In your shell, create a `/tmp/data` directory:\n+\n+    mkdir /tmp/data\n+\n+In the `/tmp/data` directory, create an `index.html` file:\n+\n+    echo 'Hello from Kubernetes storage' > /tmp/data/index.html\n+\n+## Creating a PersistentVolume\n+\n+In this exercise, you create a *hostPath* PersistentVolume. Kubernetes supports\n+hostPath for development and testing on a single-node cluster. A hostPath\n+PersistentVolume uses a file or directory on the Node that is running the Pod.\n+\n+In a production cluster, you would not use hostPath. Instead a cluster administrator\n+would provision a network resource like a Google Compute Engine persistent disk,\n+an NFS share, or an Amazon Elastic Block Store volume.\n+\n+Here is the configuration file for the hostPath PersistentVolume:\n+\n+{% include code.html language=\"yaml\" file=\"task-pv-volume.yaml\" ghlink=\"/docs/tasks/configure-pod-container/task-pv-volume.yaml\" %}\n+\n+The configuration file specifies that the volume is at `/tmp/data` on the\n+the cluster's Node. The configuration also specifies a size of 10 gibibytes and\n+an access mode of `ReadWriteOnce`, which means the volume can be mounted as\n+read-write by a single Node.\n+\n+Create the PersistentVolume:\n+\n+    kubectl create -f http://k8s.io/docs/tasks/configure-pod-container/task-pv-volume.yaml\n+\n+View information about the PersistentVolume:\n+\n+    kubectl get pv task-pv-volume\n+\n+The output shows that the PersistentVolume has a `STATUS` of `Available`. This\n+means it has not yet been claimed by a Pod.\n+\n+    NAME             CAPACITY   ACCESSMODES   RECLAIMPOLICY   STATUS      CLAIM     REASON    AGE\n+    task-pv-volume   10Gi       RWO           Retain          Available                       17s\n+\n+\n+## Creating a PersistentVolumeClaim\n+\n+The next step is to create a PersistentVolumeClaim. Pods use PersistentVolumeClaims\n+to request physical storage. In this exercise, you create a PersistentVolumeClaim\n+that requests a volume of at least three gibibytes that can provide read-write\n+access for at least one Node.","path":"docs/tasks/configure-pod-container/configure-persistent-volume-storage.md","position":78,"original_position":78,"commit_id":"3c74b0c22b00e7fd633c1fe63b793b23384b49d7","original_commit_id":"3c74b0c22b00e7fd633c1fe63b793b23384b49d7","user":{"login":"steveperry-53","id":13792782,"avatar_url":"https://avatars.githubusercontent.com/u/13792782?v=3","gravatar_id":"","url":"https://api.github.com/users/steveperry-53","html_url":"https://github.com/steveperry-53","followers_url":"https://api.github.com/users/steveperry-53/followers","following_url":"https://api.github.com/users/steveperry-53/following{/other_user}","gists_url":"https://api.github.com/users/steveperry-53/gists{/gist_id}","starred_url":"https://api.github.com/users/steveperry-53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveperry-53/subscriptions","organizations_url":"https://api.github.com/users/steveperry-53/orgs","repos_url":"https://api.github.com/users/steveperry-53/repos","events_url":"https://api.github.com/users/steveperry-53/events{/privacy}","received_events_url":"https://api.github.com/users/steveperry-53/received_events","type":"User","site_admin":false},"body":"OK as is, I think.","created_at":"2017-01-23T19:05:55Z","updated_at":"2017-01-23T19:05:55Z","html_url":"https://github.com/kubernetes/kubernetes.github.io/pull/2302#discussion_r97391359","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments/97391359"},"html":{"href":"https://github.com/kubernetes/kubernetes.github.io/pull/2302#discussion_r97391359"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302","id":102348835,"html_url":"https://github.com/kubernetes/kubernetes.github.io/pull/2302","diff_url":"https://github.com/kubernetes/kubernetes.github.io/pull/2302.diff","patch_url":"https://github.com/kubernetes/kubernetes.github.io/pull/2302.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/2302","number":2302,"state":"open","locked":false,"title":"Write new Task: Configuring a Pod to use a PersistentVolume.","user":{"login":"steveperry-53","id":13792782,"avatar_url":"https://avatars.githubusercontent.com/u/13792782?v=3","gravatar_id":"","url":"https://api.github.com/users/steveperry-53","html_url":"https://github.com/steveperry-53","followers_url":"https://api.github.com/users/steveperry-53/followers","following_url":"https://api.github.com/users/steveperry-53/following{/other_user}","gists_url":"https://api.github.com/users/steveperry-53/gists{/gist_id}","starred_url":"https://api.github.com/users/steveperry-53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveperry-53/subscriptions","organizations_url":"https://api.github.com/users/steveperry-53/orgs","repos_url":"https://api.github.com/users/steveperry-53/repos","events_url":"https://api.github.com/users/steveperry-53/events{/privacy}","received_events_url":"https://api.github.com/users/steveperry-53/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes.github.io/2302)\n<!-- Reviewable:end -->\n","created_at":"2017-01-19T21:08:19Z","updated_at":"2017-01-23T19:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55c5eba03131de11dfc6abc05d5799175bd5a4fa","assignee":{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"assignees":[{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/2302/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/3c74b0c22b00e7fd633c1fe63b793b23384b49d7","head":{"label":"steveperry-53:persistent-volume","ref":"persistent-volume","sha":"3c74b0c22b00e7fd633c1fe63b793b23384b49d7","user":{"login":"steveperry-53","id":13792782,"avatar_url":"https://avatars.githubusercontent.com/u/13792782?v=3","gravatar_id":"","url":"https://api.github.com/users/steveperry-53","html_url":"https://github.com/steveperry-53","followers_url":"https://api.github.com/users/steveperry-53/followers","following_url":"https://api.github.com/users/steveperry-53/following{/other_user}","gists_url":"https://api.github.com/users/steveperry-53/gists{/gist_id}","starred_url":"https://api.github.com/users/steveperry-53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveperry-53/subscriptions","organizations_url":"https://api.github.com/users/steveperry-53/orgs","repos_url":"https://api.github.com/users/steveperry-53/repos","events_url":"https://api.github.com/users/steveperry-53/events{/privacy}","received_events_url":"https://api.github.com/users/steveperry-53/received_events","type":"User","site_admin":false},"repo":{"id":66476791,"name":"steveperry-53.github.io","full_name":"steveperry-53/steveperry-53.github.io","owner":{"login":"steveperry-53","id":13792782,"avatar_url":"https://avatars.githubusercontent.com/u/13792782?v=3","gravatar_id":"","url":"https://api.github.com/users/steveperry-53","html_url":"https://github.com/steveperry-53","followers_url":"https://api.github.com/users/steveperry-53/followers","following_url":"https://api.github.com/users/steveperry-53/following{/other_user}","gists_url":"https://api.github.com/users/steveperry-53/gists{/gist_id}","starred_url":"https://api.github.com/users/steveperry-53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveperry-53/subscriptions","organizations_url":"https://api.github.com/users/steveperry-53/orgs","repos_url":"https://api.github.com/users/steveperry-53/repos","events_url":"https://api.github.com/users/steveperry-53/events{/privacy}","received_events_url":"https://api.github.com/users/steveperry-53/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/steveperry-53/steveperry-53.github.io","description":"Website/documentation repo","fork":true,"url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io","forks_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/forks","keys_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/teams","hooks_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/hooks","issue_events_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/events","assignees_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/tags","blobs_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/languages","stargazers_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/stargazers","contributors_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/contributors","subscribers_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/subscribers","subscription_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/subscription","commits_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/merges","archive_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/downloads","issues_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/labels{/name}","releases_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/steveperry-53/steveperry-53.github.io/deployments","created_at":"2016-08-24T15:37:19Z","updated_at":"2016-10-27T18:49:17Z","pushed_at":"2017-01-20T00:06:31Z","git_url":"git://github.com/steveperry-53/steveperry-53.github.io.git","ssh_url":"git@github.com:steveperry-53/steveperry-53.github.io.git","clone_url":"https://github.com/steveperry-53/steveperry-53.github.io.git","svn_url":"https://github.com/steveperry-53/steveperry-53.github.io","homepage":null,"size":48515,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"1ea84ea5ba6140f42d8977c202ff1281208c26ee","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":51478266,"name":"kubernetes.github.io","full_name":"kubernetes/kubernetes.github.io","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes.github.io","description":"Kubernetes website and documentation repo: ","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io","forks_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/deployments","created_at":"2016-02-10T22:46:48Z","updated_at":"2017-01-20T23:23:48Z","pushed_at":"2017-01-23T18:57:06Z","git_url":"git://github.com/kubernetes/kubernetes.github.io.git","ssh_url":"git@github.com:kubernetes/kubernetes.github.io.git","clone_url":"https://github.com/kubernetes/kubernetes.github.io.git","svn_url":"https://github.com/kubernetes/kubernetes.github.io","homepage":"https://kubernetes.github.io","size":50534,"stargazers_count":124,"watchers_count":124,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":866,"mirror_url":null,"open_issues_count":300,"forks":866,"open_issues":300,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302"},"html":{"href":"https://github.com/kubernetes/kubernetes.github.io/pull/2302"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/2302"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/2302/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/2302/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/3c74b0c22b00e7fd633c1fe63b793b23384b49d7"}}}}
{"actor":{"display_login":"steveperry-53"}}