1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubeadm  init - Run this command in order to set up the Kubernetes mas‐
7       ter.
8
9
10

SYNOPSIS

12       kubeadm init [OPTIONS]
13
14
15

DESCRIPTION

17       Run this command in order to set up the Kubernetes master.
18
19
20       The "init" command executes the following phases:
21
22
23              preflight                  Run master pre-flight checks
24              kubelet-start              Writes kubelet settings and (re)starts the kubelet
25              certs                      Certificate generation
26                /front-proxy-ca            Generates the self-signed CA to provision identities for front proxy
27                /front-proxy-client        Generates the client for the front proxy
28                /ca                        Generates the self-signed Kubernetes CA to provision identities for other Kubernetes components
29                /apiserver                 Generates the certificate for serving the Kubernetes API
30                /apiserver-kubelet-client  Generates the Client certificate for the API server to connect to kubelet
31                /etcd-ca                   Generates the self-signed CA to provision identities for etcd
32                /etcd-server               Generates the certificate for serving etcd
33                /etcd-peer                 Generates the credentials for etcd nodes to communicate with each other
34                /etcd-healthcheck-client   Generates the client certificate for liveness probes to healtcheck etcd
35                /apiserver-etcd-client     Generates the client apiserver uses to access etcd
36                /sa                        Generates a private key for signing service account tokens along with its public key
37              kubeconfig                 Generates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file
38                /admin                     Generates a kubeconfig file for the admin to use and for kubeadm itself
39                /kubelet                   Generates a kubeconfig file for the kubelet to use *only* for cluster bootstrapping purposes
40                /controller-manager        Generates a kubeconfig file for the controller manager to use
41                /scheduler                 Generates a kubeconfig file for the scheduler to use
42              control-plane              Generates all static Pod manifest files necessary to establish the control plane
43                /apiserver                 Generates the kube-apiserver static Pod manifest
44                /controller-manager        Generates the kube-controller-manager static Pod manifest
45                /scheduler                 Generates the kube-scheduler static Pod manifest
46              etcd                       Generates static Pod manifest file for local etcd.
47                /local                     Generates the static Pod manifest file for a local, single-node local etcd instance.
48              upload-config              Uploads the kubeadm and kubelet configuration to a ConfigMap
49                /kubeadm                   Uploads the kubeadm ClusterConfiguration to a ConfigMap
50                /kubelet                   Uploads the kubelet component config to a ConfigMap
51              mark-control-plane         Mark a node as a control-plane
52              bootstrap-token            Generates bootstrap tokens used to join a node to a cluster
53              addon                      Installs required addons for passing Conformance tests
54                /coredns                   Installs the CoreDNS addon to a Kubernetes cluster
55                /kube-proxy                Installs the kube-proxy addon to a Kubernetes cluster
56
57
58
59

OPTIONS

61       --apiserver-advertise-address=""
62           The IP address the API Server will  advertise  it's  listening  on.
63       Specify '0.0.0.0' to use the address of the default network interface.
64
65
66       --apiserver-bind-port=6443
67           Port for the API Server to bind to.
68
69
70       --apiserver-cert-extra-sans=[]
71           Optional  extra Subject Alternative Names (SANs) to use for the API
72       Server serving certificate. Can be both IP addresses and DNS names.
73
74
75       --cert-dir="/etc/kubernetes/pki"
76           The path where to save and store the certificates.
77
78
79       --config=""
80           Path to kubeadm config file. WARNING: Usage of a configuration file
81       is experimental.
82
83
84       --cri-socket="/var/run/dockershim.sock"
85           Specify the CRI socket to connect to.
86
87
88       --dry-run=false
89           Don't apply any changes; just output what would be done.
90
91
92       --feature-gates=""
93           A  set  of  key=value pairs that describe feature gates for various
94       features. Options are:
95
96
97       --ignore-preflight-errors=[]
98           A list of checks whose errors will be shown as  warnings.  Example:
99       'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
100
101
102       --image-repository="k8s.gcr.io"
103           Choose a container registry to pull control plane images from
104
105
106       --kubernetes-version="stable-1"
107           Choose a specific Kubernetes version for the control plane.
108
109
110       --node-name=""
111           Specify the node name.
112
113
114       --pod-network-cidr=""
115           Specify range of IP addresses for the pod network. If set, the con‐
116       trol plane will automatically allocate CIDRs for every node.
117
118
119       --service-cidr="10.96.0.0/12"
120           Use alternative range of IP address for service VIPs.
121
122
123       --service-dns-domain="cluster.local"
124           Use alternative domain for services, e.g. "myorg.internal".
125
126
127       --skip-phases=[]
128           List of phases to be skipped
129
130
131       --skip-token-print=false
132           Skip printing of the default bootstrap token generated by  'kubeadm
133       init'.
134
135
136       --token=""
137           The token to use for establishing bidirectional trust between nodes
138       and  masters.   The   format   is   [a-z0-9]{6}.[a-z0-9]{16}   -   e.g.
139       abcdef.0123456789abcdef
140
141
142       --token-ttl=24h0m0s
143           The  duration  before  the token is automatically deleted (e.g. 1s,
144       2m, 3h). If set to '0', the token will never expire
145
146
147

OPTIONS INHERITED FROM PARENT COMMANDS

149       --azure-container-registry-config=""
150           Path to the file containing Azure container registry  configuration
151       information.
152
153
154       --log-flush-frequency=5s
155           Maximum number of seconds between log flushes
156
157
158       --rootfs=""
159           [EXPERIMENTAL] The path to the 'real' host root filesystem.
160
161
162       --version=false
163           Print version information and quit
164
165
166

SEE ALSO

168       kubeadm(1), kubeadm-init-phase(1),
169
170
171

HISTORY

173       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
174       com) based on the kubernetes source material, but hopefully  they  have
175       been automatically generated since!
176
177
178
179Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum