// NewAPIServer creates a new APIServer object with default parameters
...
...
@@ -242,6 +243,8 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.KubeletConfig.CertFile,"kubelet-client-certificate",s.KubeletConfig.CertFile,"Path to a client cert file for TLS.")
fs.StringVar(&s.KubeletConfig.KeyFile,"kubelet-client-key",s.KubeletConfig.KeyFile,"Path to a client key file for TLS.")
fs.StringVar(&s.KubeletConfig.CAFile,"kubelet-certificate-authority",s.KubeletConfig.CAFile,"Path to a cert. file for the certificate authority.")
//See #14282 for details on how to test/try this option out. TODO remove this comment once this option is tested in CI.
fs.IntVar(&s.KubernetesServiceNodePort,"kubernetes-service-node-port",0,"If non-zero, the Kubernetes master service (which apiserver creates/maintains) will be of type NodePort, using this as the value of the port. If zero, the Kubernetes master service will be of type ClusterIP.")
}
// TODO: Longer term we should read this from some config store, rather than a flag.