|
|
|
@ -32,6 +32,7 @@ import (
|
|
|
|
|
"github.com/rancher/wrangler/pkg/signals"
|
|
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
|
etcdversion "go.etcd.io/etcd/api/v3/version"
|
|
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
|
utilnet "k8s.io/apimachinery/pkg/util/net"
|
|
|
|
|
kubeapiserverflag "k8s.io/component-base/cli/flag"
|
|
|
|
@ -147,6 +148,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
|
|
|
|
serverConfig.ControlConfig.ExtraSchedulerAPIArgs = cfg.ExtraSchedulerArgs
|
|
|
|
|
serverConfig.ControlConfig.ClusterDomain = cfg.ClusterDomain
|
|
|
|
|
serverConfig.ControlConfig.Datastore.NotifyInterval = 5 * time.Second
|
|
|
|
|
serverConfig.ControlConfig.Datastore.EmulatedETCDVersion = etcdversion.Version
|
|
|
|
|
serverConfig.ControlConfig.Datastore.Endpoint = cfg.DatastoreEndpoint
|
|
|
|
|
serverConfig.ControlConfig.Datastore.BackendTLSConfig.CAFile = cfg.DatastoreCAFile
|
|
|
|
|
serverConfig.ControlConfig.Datastore.BackendTLSConfig.CertFile = cfg.DatastoreCertFile
|
|
|
|
|