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
a7735353
Commit
a7735353
authored
Jun 16, 2015
by
Saad Ali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9665 from swagiaal/add-aws-ebs-example
Create an example pod for AWS EBS
parents
47a802d3
4f5c1b8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
README.md
examples/aws_ebs/README.md
+20
-0
aws-ebs-web.yaml
examples/aws_ebs/aws-ebs-web.yaml
+21
-0
No files found.
examples/aws_ebs/README.md
0 → 100644
View file @
a7735353
This is a simple web server pod which serves HTML from an AWS EBS
volume.
Create a volume in the same region as your node add your volume
information in the pod description file aws-ebs-web.yaml then create
the pod:
```
shell
$
kubectl create
-f
aws-ebs-web.yaml
```
Add some data to the volume if is empty:
```
shell
$
echo
"Hello World"
>
& /var/lib/kubelet/plugins/kubernetes.io/aws-ebs/mounts/aws/
{
Region
}
/
{
Volume ID
}
/index.html
```
You should now be able to query your web server:
```
shell
$
curl <Pod IP address>
$
Hello World
```
`
[

]()
examples/aws_ebs/aws-ebs-web.yaml
0 → 100644
View file @
a7735353
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
aws-web
spec
:
containers
:
-
name
:
web
image
:
nginx
ports
:
-
name
:
web
containerPort
:
80
protocol
:
tcp
volumeMounts
:
-
name
:
html-volume
mountPath
:
"
/usr/share/nginx/html"
volumes
:
-
name
:
html-volume
awsElasticBlockStore
:
# Enter the volume region and ID below
volumeID
:
aws://{region}/{volume ID}
fsType
:
ext4
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