forked from barak/tarpoon
Add glide.yaml and vendor deps
This commit is contained in:
parent
db918f12ad
commit
5b3d5e81bd
18880 changed files with 5166045 additions and 1 deletions
37
vendor/k8s.io/kubernetes/examples/volumes/aws_ebs/README.md
generated
vendored
Normal file
37
vendor/k8s.io/kubernetes/examples/volumes/aws_ebs/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
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](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html#create-iam-role-console)):
|
||||
|
||||
```shell
|
||||
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:
|
||||
|
||||
```shell
|
||||
$ kubectl create -f examples/volumes/aws_ebs/aws-ebs-web.yaml
|
||||
```
|
||||
|
||||
Add some data to the volume if is empty:
|
||||
|
||||
```sh
|
||||
$ 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:
|
||||
|
||||
```sh
|
||||
$ curl <Pod IP address>
|
||||
$ Hello World
|
||||
```
|
||||
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
||||
21
vendor/k8s.io/kubernetes/examples/volumes/aws_ebs/aws-ebs-web.yaml
generated
vendored
Normal file
21
vendor/k8s.io/kubernetes/examples/volumes/aws_ebs/aws-ebs-web.yaml
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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 ID below
|
||||
volumeID: volume_ID
|
||||
fsType: ext4
|
||||
Loading…
Add table
Add a link
Reference in a new issue