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

55 lines
1.5 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
[role="_abstract"]
You can use the {oc-first} to enable feature sets for all of the nodes in a cluster by editing the `FeatureGate` custom resource (CR). Completing this task enables non-default features in your cluster.
.Prerequisites
* You have installed the {oc-first}.
.Procedure
* 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
# ...
spec:
featureSet: TechPreviewNoUpgrade
----
where:
+
--
`metadata.name`:: Specifies the name of the `FeatureGate` CR. This must be `cluster`.
`spec.featureSet`:: Specifies 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[]