Enabling OKD features using FeatureGates
You can use the custom resource (CR) to enable specific feature sets in your cluster. A feature set is a collection of OKD features that are not enabled by default.
For example, the TechPreviewNoUpgrade
feature set allows you to enable a subset of the current Technology Preview features on test clusters, where you can fully test them, while leaving the features disabled on production clusters.
You can activate any of the following feature sets by using the FeatureGate
CR:
Procedure
To enable feature sets:
In the OKD web console, switch to the Administration → Custom Resource Definitions page.
On the Custom Resource Definitions page, click FeatureGate.
On the Custom Resource Definition Details page, click the Instances tab.
Click the cluster feature gate, then click the YAML tab.
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 CR named
cluster
:Sample FeatureGate custom resource