k3s/examples/volumes/aws_ebs
Cindy Wang fedc513658 Consolidated examples into storage/ and volume/ folders
Search and replace for references to moved examples

Reverted find and replace paths on auto gen docs

Reverting changes to changelog

Fix bugs in test-cmd.sh

Fixed path in examples README

ran update-all successfully

Updated verify-flags exceptions to include renamed files
2016-07-08 13:34:32 -07:00
..
README.md Consolidated examples into storage/ and volume/ folders 2016-07-08 13:34:32 -07:00
aws-ebs-web.yaml Consolidated examples into storage/ and volume/ folders 2016-07-08 13:34:32 -07:00

README.md

WARNING WARNING WARNING WARNING WARNING

PLEASE NOTE: This document applies to the HEAD of the source tree

If you are using a released version of Kubernetes, you should refer to the docs that go with that version.

Documentation for other releases can be found at releases.k8s.io.

This is a simple web server pod which serves HTML from an AWS EBS volume.

If you did not use kube-up script, make sure that your minions have the following IAM permissions (Amazon IAM Roles):

  ec2:AttachVolume
  ec2:DetachVolume
  ec2:DescribeInstances
  ec2:DescribeVolumes

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:

  $ kubectl create -f examples/volumes/aws_ebs/aws-ebs-web.yaml

Add some data to the volume if is empty:

  $ 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:

  $ curl <Pod IP address>
  $ Hello World

Analytics