mirror of https://github.com/k3s-io/k3s
Add comment for controller manager default values
parent
7f52438dea
commit
5af2ac5344
|
@ -45,6 +45,8 @@ type CloudControllerManagerServer struct {
|
|||
// NewCloudControllerManagerServer creates a new ExternalCMServer with a default config.
|
||||
func NewCloudControllerManagerServer() *CloudControllerManagerServer {
|
||||
s := CloudControllerManagerServer{
|
||||
// Part of these default values also present in 'cmd/kube-controller-manager/app/options/options.go'.
|
||||
// Please keep them in sync when doing update.
|
||||
KubeControllerManagerConfiguration: componentconfig.KubeControllerManagerConfiguration{
|
||||
Port: ports.CloudControllerManagerPort,
|
||||
Address: "0.0.0.0",
|
||||
|
|
|
@ -55,6 +55,8 @@ func NewCMServer() *CMServer {
|
|||
}
|
||||
|
||||
s := CMServer{
|
||||
// Part of these default values also present in 'cmd/cloud-controller-manager/app/options/options.go'.
|
||||
// Please keep them in sync when doing update.
|
||||
KubeControllerManagerConfiguration: componentconfig.KubeControllerManagerConfiguration{
|
||||
Controllers: []string{"*"},
|
||||
Port: ports.ControllerManagerPort,
|
||||
|
|
Loading…
Reference in New Issue