Enable feature sets using the web console
You can use the OpenShift Container Platform web console 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.
-
In the OpenShift Container Platform 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.
-
Edit the cluster instance to add specific feature sets:
Enabling the
TechPreviewNoUpgradefeature set on your cluster cannot be undone and prevents minor version updates. You should not enable this feature set on production clusters.Sample Feature Gate custom resourceapiVersion: config.openshift.io/v1 kind: FeatureGate metadata: name: cluster# ... spec: featureSet: TechPreviewNoUpgrade
where:
metadata.name-
Specifies the name of the
FeatureGateCR. You must specifyclusterfor the name. spec.featureSet-
Specifies the feature set that you want to enable:
-
TechPreviewNoUpgradeenables 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.
You can verify that the feature gates are enabled by looking at the kubelet.conf file on a node after the nodes return to the ready state.
-
From the Administrator perspective in the web console, navigate to Compute → Nodes.
-
Select a node.
-
In the Node details page, click Terminal.
-
In the terminal window, change your root directory to
/host:sh-4.2# chroot /host -
View the
kubelet.conffile:sh-4.2# cat /etc/kubernetes/kubelet.confSample output# ... featureGates: InsightsOperatorPullingSCA: true, LegacyNodeRoleBehavior: false # ...The features that are listed as
trueare enabled on your cluster.The features listed vary depending upon the OpenShift Container Platform version.