cri-o/vendor/k8s.io/kubernetes/examples/volumes/aws_ebs/README.md
Mrunal Patel 8e5b17cf13 Switch to github.com/golang/dep for vendoring
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-01-31 16:45:59 -08:00

1.1 KiB

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