How to check a feature-gate state in GKE. The closes thing I found was doing:
kubectl cluster-info dump | grep feature-gate
but this only shows the flags of the nodes, not the master. Are they the same?
The reason I'm asking is the following: It's not very clear if CustomResourcesSubresources
feature-gate is now beta or alpha and enabled by default or not. I’m confused as the PR here ( https://github.com/kubernetes/kubernetes/issues/62786 ) seems like it is beta since 1.11, but the documentation states ( https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ ) that it’s still alpha and disabled by default (edited)
You can verify that the feature gates are enabled by looking at the kubelet.
Refer to the GKE release notes for a full list of GKE features. 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.
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.
In GKE, a simple way to do this is from the integrated command console, known as Cloud Shell. To check the status of the Pods, you can use the kubectl get pods command. GKE also comes ready with the kubectl top command, which allows you to check the resources used by the Pods using kubectl top pods.
Masters are the same except it are managed by Google. The links you posted are Kubernetes specific.
Since there is no direct way to check for feature-gate states other than the method you shown, I went ahead and created a feature request to better handle that situation. You may also add further information in the thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With