apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
name: cluster
spec: {}
As an administrator, you can turn on features that are Technology Preview features.
You can use the FeatureGates Custom Resource to toggle on and off Technology Preview features throughout your cluster.
This allows you, for example, to ensure that Technology Preview features are off for production clusters while leaving the features on for test clusters where you can fully test them.
The following features are affected by FeatureGates:
FeatureGate | Description | Default |
---|---|---|
|
Enables annotating specific Pods as critical so that their scheduling is guaranteed. |
True |
|
Enables the rotation of the server TLS certificate on the cluster. |
True |
|
Enables support for limiting the number of processes (PIDs) running in a Pod. |
True |
|
Enables automatically repairing unhealthy machines in a machine pool. |
True |
|
Enable the consumption of local ephemeral storage and also the |
False |
You can enable these features by editing the Feature Gate Custom Resource. Turning on these features cannot be undone and prevents the ability to upgrade your cluster.
The LocalStorageCapacityIsolation
cannot be enabled.
You can turn Technology Preview features on and off for all nodes in the cluster by editing the FeatureGates Custom Resource, named cluster, in the openshift-config project.
The following Technology Preview features are enabled by feature gates:
ExperimentalCriticalPodAnnotation
RotateKubeletServerCertificate
SupportPodPidsLimit
MachineHealthCheck
Turning on Technology Preview features cannot be undone and prevents upgrades. |
To turn on the Technology Preview features for the entire cluster:
Create the FeatureGates instance:
Switch to the Administration → Custom Resource Definitions page.
On the Custom Resource Definitions page, click FeatureGate.
On the Custom Resource Definitions page, click the Actions Menu and select View Instances.
On the Feature Gates page, click Create Feature Gates.
Replace the code with following sample:
apiVersion: config.openshift.io/v1
kind: FeatureGate
metadata:
name: cluster
spec: {}
Click Create.
To turn on the Technology Preview features, change the spec
parameter to:
apiVersion: config.openshift.io/v1 kind: FeatureGate metadata: name: cluster spec: featureSet: TechPreviewNoUpgrade (1)
1 | Add featureSet: TechPreviewNoUpgrade to enable the Technology Preview
features that are affected by FeatureGates. |
Turning on Technology Preview features cannot be undone and prevents upgrades. |