kubeadm: remove --port from kube-scheduler manifest

This commit is contained in:
Paco Xu 2021-09-15 12:56:30 +08:00
parent 5449ce7c5c
commit 0b8433a3f5
2 changed files with 0 additions and 2 deletions

View File

@ -360,7 +360,6 @@ func getControllerManagerCommand(cfg *kubeadmapi.ClusterConfiguration) []string
func getSchedulerCommand(cfg *kubeadmapi.ClusterConfiguration) []string {
kubeconfigFile := filepath.Join(kubeadmconstants.KubernetesDir, kubeadmconstants.SchedulerKubeConfigFileName)
defaultArguments := map[string]string{
"port": "0",
"bind-address": "127.0.0.1",
"leader-elect": "true",
"kubeconfig": kubeconfigFile,

View File

@ -938,7 +938,6 @@ func TestGetSchedulerCommand(t *testing.T) {
cfg: &kubeadmapi.ClusterConfiguration{},
expected: []string{
"kube-scheduler",
"--port=0",
"--bind-address=127.0.0.1",
"--leader-elect=true",
"--kubeconfig=" + kubeadmconstants.KubernetesDir + "/scheduler.conf",