Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fe8b8727
Commit
fe8b8727
authored
Feb 08, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20717 from rutsky/patch-1
Auto commit by PR queue bot
parents
e41329a6
fa37bff9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
README.md
docs/user-guide/walkthrough/README.md
+12
-12
No files found.
docs/user-guide/walkthrough/README.md
View file @
fe8b8727
...
@@ -129,21 +129,21 @@ For this example we'll be creating a Redis pod with a named volume and volume mo
...
@@ -129,21 +129,21 @@ For this example we'll be creating a Redis pod with a named volume and volume mo
1.
Define a volume:
1.
Define a volume:
```
yaml
```
yaml
volumes
:
volumes
:
-
name
:
redis-persistent-storage
-
name
:
redis-persistent-storage
emptyDir
:
{}
emptyDir
:
{}
```
```
2. Define a volume mount within a container definition
:
2. Define a volume mount within a container definition
:
```
yaml
```
yaml
volumeMounts
:
volumeMounts
:
# name must match the volume name below
# name must match the volume name below
-
name
:
redis-persistent-storage
-
name
:
redis-persistent-storage
# mount path within the container
# mount path within the container
mountPath
:
/data/redis
mountPath
:
/data/redis
```
```
Example Redis pod definition with a persistent storage volume ([pod-redis.yaml](pod-redis.yaml))
:
Example Redis pod definition with a persistent storage volume ([pod-redis.yaml](pod-redis.yaml))
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment