1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/nodes-cluster-enabling-features-cli.adoc

47 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * nodes/cluster/nodes-cluster-enabling-features.adoc
:_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
----
+
.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 sets that you want to enable in a comma-separated list:
* `TechPreviewNoUpgrade` enables specific Technology Preview features.
--
+
[NOTE]
====
Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents upgrades. These feature sets are not recommended on production clusters.
====