Closed hgrant-ebsco closed 3 years ago
Hi @JayG-EBSCO, thanks for opening this issue.
~I believe that flag would qualify as a feature gate, could you try adding it like this instead?~
kubeletExtraConfig:
...
featureGates:
EnableCAdvisorJsonEndpoints: true
Edit: scratch that, does not work. I will keep digging.
So from what I understand, the kubelet config does not expose that flag as a field, and it does not count as a feature gate. This could be because that flag is marked for removal in v1.21.
Eksctl sets up the kubelet to start from a config file, we do have some other flags around bootstrapping, but it is unlikely that we will add direct support for a deprecated flag. One option may be to use overrideBootstrapCommand
which I will test now.
So from what I understand, the kubelet config does not expose that flag as a field, and it does not count as a feature gate. This could be because that flag is marked for removal in v1.21.
Eksctl sets up the kubelet to start from a config file, we do have some other flags around bootstrapping, but it is unlikely that we will add direct support for a deprecated flag. One option may be to use
overrideBootstrapCommand
which I will test now.
We have discovered that the 3rd party has released a beta version that negates the need for the flag, and have tested it successfully. This is no longer an issue.
Ha! Excellent 🎉
We are deploying EKS clusters with v1.18, which has the cadvisor json endpoint disabled by default. On our clusters, we have one tool that needs this endpoint for the moment, so to enable this, I am trying to use the --enable-cadvisor-json-endpoints kubelet flag.
What help do you need?
The nodegroups build successfully, and are functional. Before I deploy the tool needing the flag, I want to verify the flag was actually applied, but I cannot see any reference to it in my kubelet config on any of the nodes. My Eksctl nodegroup config is as follows for the kubelet extra args:
The error thrown is:
[✖] validating generated KubeletConfiguration object: error unmarshaling JSON: while decoding JSON: json: unknown field "enable-cadvisor-json-endpoints"