Edit This Page

Generates the API server static Pod manifest.


Generates the static Pod manifest file for the API server and saves it into /etc/kubernetes/manifests/kube-apiserver.yaml file.

Alpha Disclaimer: this command is currently alpha.

kubeadm alpha phase controlplane apiserver [flags]


      --apiserver-advertise-address string     The IP address of the API server is accessible on
      --apiserver-bind-port int32              The port the API server is accessible on (default 6443)
      --apiserver-extra-args mapStringString   A set of extra flags to pass to the API Server or override default ones in form of <flagname>=<value>
      --cert-dir string                        The path where certificates are stored (default "/etc/kubernetes/pki")
      --config string                          Path to kubeadm config file (WARNING: Usage of a configuration file is experimental)
      --feature-gates string                   A set of key=value pairs that describe feature gates for various features. Options are:
Auditing=true|false (ALPHA - default=false)
CoreDNS=true|false (BETA - default=false)
DynamicKubeletConfig=true|false (ALPHA - default=false)
SelfHosting=true|false (ALPHA - default=false)
StoreCertsInSecrets=true|false (ALPHA - default=false)
  -h, --help                                   help for apiserver
      --kubernetes-version string              Choose a specific Kubernetes version for the control plane (default "stable-1.10")
      --service-cidr string                    The range of IP address used for service VIPs (default "")


Create an Issue Edit this Page