From bb587690fd5ecaf3c3e9abb20cbe5f69602c685f Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 21 Jan 2020 17:30:39 -0500 Subject: [PATCH] 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} --- cmd/kubelet/app/options/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index 76b83d5fd3f..effd6190094 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -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, } }