Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if the feature gate is enabled /disabled in kubernetes

In Kubernetes , is there a particular way I can check if a specific feature-gate is enabled/disabled. Say, I want to check if MountPropagation feature is enabled in my cluster. How do I do that.

like image 495
ambikanair Avatar asked May 21 '18 03:05

ambikanair


People also ask

How do you check a feature gate in Kubernetes?

Overview. Feature gates are a set of key=value pairs that describe Kubernetes features. You can turn these features on or off using the --feature-gates command line flag on each Kubernetes component.

How do I enable feature gate?

You basically need to add the — feature-gate argument to every component of Kubernetes with the list of features you wish to enable. Namely kubelet, kube-apiserver, kube-controller-manager and kube-scheduler.

What are feature Gates in Kubernetes?

Feature gates are a set of key-value pairs that describe Kubernetes features. Feature gates in GKE are treated as internal implementation details and cannot be modified. Kubernetes features can be in a stage of General Availability (GA), beta or alpha.

How do I enable feature Gates OpenShift?

Enabling feature sets using the web console To enable feature sets: In the OpenShift Container Platform web console, switch to the Administration → Custom Resource Definitions page. On the Custom Resource Definitions page, click FeatureGate.


1 Answers

Check official documents for default value, and run ps aux | grep apiserver | grep feature-gates on master to check if you turn on/off that feature.

like image 187
ccshih Avatar answered Oct 21 '22 10:10

ccshih