forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PVC Protection alpha feature was added to K8s 1.9 in PRs: - kubernetes/kubernetes#55824 - kubernetes/kubernetes#55873 and documented in K8s 1.9 in PR: - kubernetes/website#6415 That's why the PVC Protection is a new alpha feature in OpenShift 3.9 and that's why PVC Protection documentation is added.
- Loading branch information
pospispa
committed
Feb 3, 2018
1 parent
3e5b51f
commit 9270841
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[[install-config-configuring-pvc-protection]] | ||
= Configuring for Persistent Volume Claim Protection | ||
{product-version} | ||
:data-uri: | ||
:icons: | ||
:experimental: | ||
:toc: macro | ||
:toc-title: | ||
|
||
toc::[] | ||
|
||
== Overview | ||
{product-title} can be configured to have | ||
xref:../architecture/additional_concepts/storage.adoc#pvcprotection[Persistent Volume Claim Protection] feature enabled. | ||
|
||
[NOTE] | ||
==== | ||
Persistent Volume Claim Protection is an alpha feature and may change in a future release of {product-title}. | ||
==== | ||
|
||
[[local-volume-enabling-local-volumes]] | ||
=== Enable Persistent Volume Claim Protection | ||
Enable the `PVCProtection` feature gate on all masters and nodes. | ||
|
||
. Edit or create the master configuration file on all masters (*_/etc/origin/master/master-config.yaml_* by default) and add `PVCProtection=true` under the `apiServerArguments` and `controllerArguments` sections and add `PVCProtection` admission plugin configuration under the `admissionConfig` section: | ||
+ | ||
[source, yaml] | ||
---- | ||
admissionConfig: | ||
pluginConfig: | ||
PVCProtection: | ||
configuration: | ||
apiVersion: v1 | ||
disable: false | ||
kind: DefaultAdmissionConfig | ||
... | ||
kubernetesMasterConfig: | ||
... | ||
apiServerArguments: | ||
feature-gates: | ||
- PVCProtection=true | ||
... | ||
controllerArguments: | ||
feature-gates: | ||
- PVCProtection=true | ||
... | ||
---- | ||
|
||
. On all nodes, edit or create the node configuration file (*_/etc/origin/node/node-config.yaml_* by default) and add `PVCProtection=true` fetaure gate under `kubeletArguments`. | ||
+ | ||
[source, yaml] | ||
---- | ||
kubeletArguments: | ||
feature-gates: | ||
- PVCProtection=true | ||
---- | ||
|
||
. On all masters and nodes, restart OpenShift for the changes to take effect. |