When I describe the config of the cluster after creation (gcloud container cluster describe…) then I see that nodePools.config.kubeletConfig.insecureKubeletReadonlyPortEnabled: false
but nodePoolDefaults.nodeConfigDefaults.nodeKubeletConfig: {}.
Shouldn’t nodePoolDefaults.nodeConfigDefaults.nodeKubeletConfig be false? Why is this configuration not correct?
I worked on adding this to the provider. It’s a little confusing how many different places this setting can be, especially since there are subtle differences in the naming / path depending on context.
You didn’t include your nodepool’s config, but I think this looks correct.
That said, it sounds to me like things are behaving with the node_pool_defaults setting if a newly created nodepool has the right settings without having it set explicitly. It wouldn’t hurt to also set config.kubelet_config.insecure_kubelet_readonly_port_enabled explicitly to false on the nodepool as well, though seems like that’s already working out Ok?
Also, in some GKE versions, I believe this will default to false almost everywhere, so at some point in the future, hopefully people should generally not need to worry about explicitly disabling this anymore.