Skip to content

Commit

Permalink
UPdates
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Rati committed Sep 4, 2017
1 parent 7ce32f4 commit 44bc985
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions docs/tasks/administer-cluster/running-cloud-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ The `kube-controller-manager` should not run any cloud-specific controllers, sin

The `kube-apiserver` should not run the Persistent Volume Label admission controller either since the `cloud-controller-manager` takes over labeling persistent volumes. To prevent the Persistent Volume Label admission plugin from running, make sure the `kube-apiserver` has a `--admission-control` flag with a value that does not include `PersistentVolumeLabel`.

In order for the `cloud-controller-manager` to label persistent volumes, initializers will need need to be enabled and an InitializerConifguration will need to be added to the system. Follow [these instructions](/docs/admin/extensible-admission-controllers.md#enable-initializers-alpha-feature) to enable initializers. Use the following yaml to create the InitializerConfiguration:

```shell
kind: InitializerConfiguration
apiVersion: admissionregistration.k8s.io/v1alpha1
metadata:
name: pvlabel.kubernetes.io
initializers:
- name: pvlabel.kubernetes.io
rules:
- apiGroups:
- ""
apiVersions:
- "*"
resources:
- persistentvolumes
```
This can also be found in examples/cloud-controller-manager/persistent-volume-label-initializer-config.yaml
For the `cloud-controller-manager` to label persistent volumes, initializers will need to be enabled and an InitializerConifguration needs to be added to the system. Follow [these instructions](/docs/admin/extensible-admission-controllers.md#enable-initializers-alpha-feature) to enable initializers. Use the following YAML to create the InitializerConfiguration:
{% include code.html language="yaml" file="https://github.com/kubernetes/kubernetes/blob/master/examples/cloud-controller-manager/persistent-volume-label-initializer-config.yaml" ghlink="https://github.com/kubernetes/kubernetes/blob/master/examples/cloud-controller-manager/persistent-volume-label-initializer-config.yaml" %}

0 comments on commit 44bc985

Please sign in to comment.