Default the --enable-cadvisor-endpoints flag to disabled

As part of #68522, Switching off the cAdvisor v1 Json API that we expose
directly. These include /stats/, /stats/container, /stats/{podName}/{containerName},
and /stats/{namespace}/{podName}/{uid}/{containerName}
This commit is contained in:
Davanum Srinivas 2020-01-21 17:30:39 -05:00
parent c9b4cf3d25
commit bb587690fd
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -219,7 +219,7 @@ func NewKubeletFlags() *KubeletFlags {
SeccompProfileRoot: filepath.Join(defaultRootDir, "seccomp"),
// prior to the introduction of this flag, there was a hardcoded cap of 50 images
NodeStatusMaxImages: 50,
EnableCAdvisorJSONEndpoints: true,
EnableCAdvisorJSONEndpoints: false,
}
}