# 以下为输出 [kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters. [init] Using Kubernetes version: v1.8.1 [init] Using Authorization modes:[Node RBAC] [preflight] Running pre-flight checks [preflight] WARNING: docker version is greater than the most recently validated version. Docker version:17.09.0-ce. Max validated version:17.03 [preflight] Starting the kubelet service [kubeadm] WARNING: starting in1.8, tokens expire after 24 hours by default (if you require a non-expiring token use --token-ttl 0) [certificates] Generated ca certificate and key. [certificates] Generated apiserver certificate and key. [certificates] apiserver serving cert is signed for DNS names[localhost.localdomain kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 192.168.8.78] [certificates] Generated apiserver-kubelet-client certificate and key. [certificates] Generated sa key and public key. [certificates] Generated front-proxy-ca certificate and key. [certificates] Generated front-proxy-client certificate and key. [certificates] Valid certificates and keys now exist in"/etc/kubernetes/pki" [kubeconfig] Wrote KubeConfig file to disk:"admin.conf" [kubeconfig] Wrote KubeConfig file to disk:"kubelet.conf" [kubeconfig] Wrote KubeConfig file to disk:"controller-manager.conf" [kubeconfig] Wrote KubeConfig file to disk:"scheduler.conf" [controlplane] Wrote Static Pod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml" [controlplane] Wrote Static Pod manifest for component kube-controller-manager to "/etc/kubernetes/manifests/kube-controller-manager.yaml" [controlplane] Wrote Static Pod manifest for component kube-scheduler to "/etc/kubernetes/manifests/kube-scheduler.yaml" [etcd] Wrote Static Pod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml" [init] Waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests" [init] This often takes around a minute; or longer if the control plane images have to be pulled.
[apiclient] All control plane components are healthy after 29.502147 seconds [uploadconfig] Storing the configuration used in ConfigMap "kubeadm-config"in the "kube-system" Namespace [markmaster] Will mark node localhost.localdomain as master by adding a label and a taint [markmaster] Master localhost.localdomain tainted and labelled with key/value: node-role.kubernetes.io/master="" [bootstraptoken] Using token:405cea.cb350fd16023e08d [bootstraptoken] Configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials [bootstraptoken] Configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token [bootstraptoken] Configured RBAC rules to allow certificate rotation forall node client certificates in the cluster [bootstraptoken] Creating the "cluster-info" ConfigMap in the "kube-public" namespace [addons] Applied essential addon: kube-dns [addons] Applied essential addon: kube-proxy
Your Kubernetes master has initialized successfully!
To start using your cluster, you need to run (as a regular user):
You should now deploy a pod network to the cluster. Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: http://kubernetes.io/docs/admin/addons/
You can now join any number of machines by running the following on each node as root:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 656dbe0d38be gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_kube-dns-545bc4bfd4-2wrrg_kube-system_de9494c2-b6f7-11e7-af7d-0800278919d4_0 e0dfea9f00a5 gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_kube-proxy-fnj6t_kube-system_de803e34-b6f7-11e7-af7d-0800278919d4_0 da7a7ec9d578 mirrorgooglecontainers/kube-scheduler-amd64 "kube-scheduler --..."2 minutes ago Up 2 minutes k8s_kube-scheduler_kube-scheduler-localhost.localdomain_kube-system_5fbf3e68ff1f2f57797628887e9c1bec_0 2126fd5a0d57 mirrorgooglecontainers/kube-controller-manager-amd64 "kube-controller-m..."2 minutes ago Up 2 minutes k8s_kube-controller-manager_kube-controller-manager-localhost.localdomain_kube-system_2f2bd9f6dddf513ac6c21a43335777dd_0 21edd6e71eeb mirrorgooglecontainers/kube-apiserver-amd64 "kube-apiserver --..."2 minutes ago Up 2 minutes k8s_kube-apiserver_kube-apiserver-localhost.localdomain_kube-system_dc78e47f78457da950a93b36ff6ac4ba_0 8712a0e9833f mirrorgooglecontainers/etcd-amd64 "etcd --listen-cli..."2 minutes ago Up 2 minutes k8s_etcd_etcd-localhost.localdomain_kube-system_d76e26fba3bf2bfd215eb29011d55250_0 47bd69d72e16 gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_kube-controller-manager-localhost.localdomain_kube-system_2f2bd9f6dddf513ac6c21a43335777dd_0 292d54bd936f gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_kube-apiserver-localhost.localdomain_kube-system_dc78e47f78457da950a93b36ff6ac4ba_0 dae95c5d2a8f gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_kube-scheduler-localhost.localdomain_kube-system_5fbf3e68ff1f2f57797628887e9c1bec_0 5d41a042874c gcr.io/google_containers/pause-amd64:3.0"/pause"2 minutes ago Up 2 minutes k8s_POD_etcd-localhost.localdomain_kube-system_d76e26fba3bf2bfd215eb29011d55250_0
clusterrole "flannel" created clusterrolebinding "flannel" created serviceaccount "flannel" created configmap "kube-flannel-cfg" created daemonset "kube-flannel-ds” created
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES aaeef81d5b18 gcr.io/google_containers/pause-amd64:3.0"/pause"14 minutes ago Up 14 minutes k8s_POD_kube-flannel-ds-kwhl9_kube-system_5137e57d-b6fd-11e7-af7d-0800278919d4_0