kubernetes/docs
Kubernetes Submit Queue 9d2a5fe5e8 Merge pull request #29006 from jsafrane/dynprov2
Automatic merge from submit-queue

Implement dynamic provisioning (beta) of PersistentVolumes via StorageClass

Implemented according to PR #26908. There are several patches in this PR with one huge code regen inside.

* Please review the API changes (the first patch) carefully, sometimes I don't know what the code is doing...

* `PV.Spec.Class` and `PVC.Spec.Class` is not implemented, use annotation `volume.alpha.kubernetes.io/storage-class`

* See e2e test and integration test changes - Kubernetes won't provision a thing without explicit configuration of at least one `StorageClass` instance!

* Multiple provisioning volume plugins can coexist together, e.g. HostPath and AWS EBS. This is important for Gluster and RBD provisioners in #25026

* Contradicting the proposal, `claim.Selector` and `volume.alpha.kubernetes.io/storage-class` annotation are **not** mutually exclusive. They're both used for matching existing PVs. However, only `volume.alpha.kubernetes.io/storage-class` is used for provisioning, configuration of provisioning with `Selector` is left for (near) future.

* Documentation is missing. Can please someone write some while I am out?

For now, AWS volume plugin accepts classes with these parameters:

```
kind: StorageClass
metadata:
  name: slow
provisionerType: kubernetes.io/aws-ebs
provisionerParameters:
  type: io1
  zone: us-east-1d
  iopsPerGB: 10
```

* parameters are case-insensitive
* `type`: `io1`, `gp2`, `sc1`, `st1`. See AWS docs for details
* `iopsPerGB`: only for `io1` volumes. I/O operations per second per GiB. AWS volume plugin multiplies this with size of requested volume to compute IOPS of the volume and caps it at 20 000 IOPS (maximum supported by AWS, see AWS docs).
* of course, the plugin will use some defaults when a parameter is omitted in a `StorageClass` instance (`gp2` in the same zone as in 1.3).

GCE:

```
apiVersion: extensions/v1beta1
kind: StorageClass
metadata:
  name: slow
provisionerType: kubernetes.io/gce-pd
provisionerParameters:
  type: pd-standard
  zone: us-central1-a
```

* `type`: `pd-standard` or `pd-ssd`
* `zone`: GCE zone
* of course, the plugin will use some defaults when a parameter is omitted in a `StorageClass` instance (SSD in the same zone as in 1.3 ?).


No OpenStack/Cinder yet

@kubernetes/sig-storage
2016-08-18 09:56:16 -07:00
..
admin Update etcd default ports for v3, and validate tests 2016-08-17 07:49:19 -05:00
api-reference Update generated code 2016-08-17 14:44:42 -04:00
design typo: correct spell 2016-08-17 14:17:01 +08:00
devel Merge pull request #29945 from mikebrow/split-out-godeps-doc 2016-08-16 19:51:26 -07:00
getting-started-guides coreos/azure: Move into a separate repo 2016-07-30 12:56:46 +01:00
images Updated for v1.2.0. 2016-03-18 14:20:56 -07:00
man/man1 Implement kubectl top command with subcommands. 2016-08-11 17:25:18 +02:00
proposals Merge pull request #29006 from jsafrane/dynprov2 2016-08-18 09:56:16 -07:00
user-guide Implement kubectl top command with subcommands. 2016-08-11 17:25:18 +02:00
yaml/kubectl Implement kubectl top command with subcommands. 2016-08-11 17:25:18 +02:00
api.md Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
README.md Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
reporting-security-issues.md Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
roadmap.md Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
troubleshooting.md Updated Google Groups link 2016-08-15 11:42:18 -07:00
warning.png Add an image to unversioned warnings 2015-07-14 15:28:59 -07:00
whatisk8s.md Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00

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 release of this document can be found [here](http://releases.k8s.io/release-1.3/docs/README.md).

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

Kubernetes Documentation: releases.k8s.io/HEAD

Analytics