diff --git a/cmd/kubeadm/README.md b/cmd/kubeadm/README.md index ea0607f6a1..3b03a29a5e 100644 --- a/cmd/kubeadm/README.md +++ b/cmd/kubeadm/README.md @@ -29,10 +29,10 @@ default behaviour. The flags used for said purpose are described below. By default, `kubeadm` sets `cluster.local` as the cluster DNS domain. If you would like to set a different one, use `--service-dns-domain`. -- `--schedule-workload=` (default: "false") +- `--schedule-pods-here=` (default: "false") By default, `kubeadm` sets the master node kubelet as non-schedulable for workloads. This means the master node won't run your pods. If you want to change that, - use `--schedule-workload=true`. + use `--schedule-pods-here=true`. - `--cloud-provider=` diff --git a/cmd/kubeadm/app/cmd/init.go b/cmd/kubeadm/app/cmd/init.go index 2e249f9280..83d0b02558 100644 --- a/cmd/kubeadm/app/cmd/init.go +++ b/cmd/kubeadm/app/cmd/init.go @@ -83,7 +83,7 @@ func NewCmdInit(out io.Writer, s *kubeadmapi.KubeadmConfig) *cobra.Command { `(optional) Enable a specific cloud provider features (external load-balancers, storage, etc), e.g. "gce"`, ) cmd.PersistentFlags().BoolVar( - &s.InitFlags.Schedulable, "schedule-workload", false, + &s.InitFlags.Schedulable, "schedule-pods-here", false, `(optional) Allow to schedule workload to the node`, ) diff --git a/hack/verify-flags/known-flags.txt b/hack/verify-flags/known-flags.txt index 43a7c40d09..1c98b734dc 100644 --- a/hack/verify-flags/known-flags.txt +++ b/hack/verify-flags/known-flags.txt @@ -455,7 +455,7 @@ runtime-config runtime-integration-type runtime-request-timeout save-config -schedule-workload +schedule-pods-here scheduler-config scheduler-name schema-cache-dir