refactor(apiserver): ignore the insecure flags

Leave the insecure flags intact but stop serving on insecure port.
This commit is contained in:
knight42
2020-10-29 13:08:40 +08:00
parent 5935fcd704
commit cfc2b330a7
15 changed files with 118 additions and 71 deletions

View File

@@ -55,8 +55,6 @@ func (a *APIServer) Start() error {
return err
}
o.SecureServing.BindAddress = net.ParseIP("127.0.0.1")
// Disable insecure serving
o.InsecureServing.BindPort = 0
o.ServiceClusterIPRanges = ipnet.String()
o.AllowPrivileged = true
if err := generateTokenFile(tokenFilePath); err != nil {