Check if the feature gate is enabled /disabled in kubernetes Check if the feature gate is enabled /disabled in kubernetes kubernetes kubernetes

Check if the feature gate is enabled /disabled in kubernetes


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.


Kubernetes Mount propagation allows sharing volumes mounted by a Container with other Containers in the same Pod, or even with other Pods on the same node.

The Kubernetes API does not provide information about feature gates enabled by the command line. It is hard to get these parameters - the only way is togrep list of the executed process (ps aux) or dig in the /proc filesystem.


I was able to check this on a RKE2 cluster like this:

kubectl describe pod/kube-apiserver-<node_name> --namespace kube-system

Then I looked at the Command: field.

For example, I saw --feature-gates=RemoveSelfLink=false