You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/persistent-volumes/walkthrough.md
+2-120Lines changed: 2 additions & 120 deletions
Original file line number
Diff line number
Diff line change
@@ -5,124 +5,6 @@ assignees:
5
5
title: Persistent Volumes Walkthrough
6
6
---
7
7
8
-
The purpose of this guide is to help you become familiar with [Kubernetes Persistent Volumes](/docs/user-guide/persistent-volumes/). By the end of the guide, we'll have
9
-
nginx serving content from your persistent volume.
8
+
{% include user-guide-content-moved.md %}
10
9
11
-
You can view all the files for this example in [the docs repo
This guide assumes knowledge of Kubernetes fundamentals and that you have a cluster up and running.
15
-
16
-
See [Persistent Storage design document](https://github.com/kubernetes/kubernetes/blob/{{page.githubbranch}}/docs/design/persistent-storage.md) for more information.
17
-
18
-
## Provisioning
19
-
20
-
A Persistent Volume (PV) in Kubernetes represents a real piece of underlying storage capacity in the infrastructure. Cluster administrators
21
-
must first create storage (create their Google Compute Engine (GCE) disks, export their NFS shares, etc.) in order for Kubernetes to mount it.
22
-
23
-
PVs are intended for "network volumes" like GCE Persistent Disks, NFS shares, and AWS ElasticBlockStore volumes. `HostPath` was included
24
-
for ease of development and testing. You'll create a local `HostPath` for this example.
25
-
26
-
> IMPORTANT! For `HostPath` to work, you will need to run a single node cluster. Kubernetes does not
27
-
support local storage on the host at this time. There is no guarantee your pod ends up on the correct node where the `HostPath` resides.
28
-
29
-
```shell
30
-
# This will be nginx's webroot; execute this on the node where your pod will run.
31
-
$ mkdir /tmp/data01
32
-
$ echo'I love Kubernetes storage!'> /tmp/data01/index.html
33
-
```
34
-
35
-
PVs are created by posting them to the API server.
You should be able to query your service endpoint and see what content nginx is serving. A "forbidden" error might mean you
119
-
need to disable SELinux (setenforce 0).
120
-
121
-
```shell
122
-
$ curl 10.0.0.241:3000
123
-
I love Kubernetes storage!
124
-
```
125
-
126
-
Hopefully this simple guide is enough to get you started with PersistentVolumes. If you have any questions, join the team on [Slack](/docs/troubleshooting/#slack) and ask!
127
-
128
-
Enjoy!
10
+
[Configuring a Pod to Use a Persistent Volume for Storage](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/)
0 commit comments