mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * nodes/cluster/nodes-cluster-enabling-features.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nodes-cluster-enabling-features-cli_{context}"]
|
|
= Enabling feature sets using the CLI
|
|
|
|
You can use the OpenShift CLI (`oc`) to enable feature sets for all of the nodes in a cluster by editing the `FeatureGate` custom resource (CR).
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed the OpenShift CLI (`oc`).
|
|
|
|
.Procedure
|
|
|
|
To enable feature sets:
|
|
|
|
. Edit the `FeatureGate` CR named `cluster`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit featuregate cluster
|
|
----
|
|
+
|
|
[WARNING]
|
|
====
|
|
Enabling the `TechPreviewNoUpgrade` feature set on your cluster cannot be undone and prevents minor version updates. You should not enable this feature set on production clusters.
|
|
====
|
|
|
|
+
|
|
.Sample FeatureGate custom resource
|
|
[source,yaml]
|
|
----
|
|
apiVersion: config.openshift.io/v1
|
|
kind: FeatureGate
|
|
metadata:
|
|
name: cluster <1>
|
|
# ...
|
|
spec:
|
|
featureSet: TechPreviewNoUpgrade <2>
|
|
----
|
|
+
|
|
--
|
|
<1> The name of the `FeatureGate` CR must be `cluster`.
|
|
<2> Add the feature set that you want to enable:
|
|
* `TechPreviewNoUpgrade` enables specific Technology Preview features.
|
|
--
|
|
+
|
|
After you save the changes, new machine configs are created, the machine config pools are updated, and scheduling on each node is disabled while the change is being applied.
|
|
|
|
.Verification
|
|
|
|
include::snippets/nodes-cluster-enabling-features-verification.adoc[]
|