k3s/examples/aws_ebs
David Oppenheimer dec9adfe2e Replace ```shell with ```sh 2015-07-19 21:38:53 -07:00
..
README.md Replace ```shell with ```sh 2015-07-19 21:38:53 -07:00
aws-ebs-web.yaml Use instance availability zone for AWS EBS 2015-06-25 16:00:30 -04: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.

The latest 1.0.x release of this document can be found [here](http://releases.k8s.io/release-1.0/examples/aws_ebs/README.md).

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.

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/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