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.
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 to grep list of the executed process (ps aux) or dig in the /proc filesystem.