Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check a feature-gate state in GKE

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)

like image 887
alexvanboxel Avatar asked Jan 09 '19 10:01

alexvanboxel


People also ask

How do you check a feature gate in Kubernetes?

You can verify that the feature gates are enabled by looking at the kubelet.

What is Kubernetes feature gate?

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.

How do I enable feature Gates in Kubernetes?

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 you monitor pods in GKE?

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.


1 Answers

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.

like image 169
dany L Avatar answered Sep 29 '22 03:09

dany L