This flag will be removed in 1.22

Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
This commit is contained in:
dcwbq 2021-04-16 10:19:02 +08:00
parent 8edda782f3
commit 5d186d0d0c

View File

@ -238,10 +238,6 @@ func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets) {
"Example: '30000-32767'. Inclusive at both ends of the range.")
// Kubelet related flags:
kubeletHTTPS := true
fs.BoolVar(&kubeletHTTPS, "kubelet-https", kubeletHTTPS, "Use https for kubelet connections.")
fs.MarkDeprecated("kubelet-https", "API Server connections to kubelets always use https. This flag will be removed in 1.22.")
fs.StringSliceVar(&s.KubeletConfig.PreferredAddressTypes, "kubelet-preferred-address-types", s.KubeletConfig.PreferredAddressTypes,
"List of the preferred NodeAddressTypes to use for kubelet connections.")