Merge pull request #70935 from neolit123/kubeadm-update-cmd-go

kubeadm: update the state in app/cmd.go
This commit is contained in:
k8s-ci-robot
2018-11-13 13:45:41 -08:00
committed by GitHub

View File

@@ -37,32 +37,31 @@ func NewKubeadmCommand(in io.Reader, out, err io.Writer) *cobra.Command {
Use: "kubeadm", Use: "kubeadm",
Short: "kubeadm: easily bootstrap a secure Kubernetes cluster", Short: "kubeadm: easily bootstrap a secure Kubernetes cluster",
Long: dedent.Dedent(` Long: dedent.Dedent(`
kubeadm: easily bootstrap a secure Kubernetes cluster.
┌──────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────┐
KUBEADM IS CURRENTLY IN BETA | KUBEADM
| Easily bootstrap a secure Kubernetes cluster |
│ │ │ │
But please, try it out and give us feedback at: │ Please give us feedback at:
│ https://github.com/kubernetes/kubeadm/issues │ │ https://github.com/kubernetes/kubeadm/issues │
│ and at-mention @kubernetes/sig-cluster-lifecycle-bugs │
│ or @kubernetes/sig-cluster-lifecycle-feature-requests │
└──────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────┘
Example usage: Example usage:
Create a two-machine cluster with one master (which controls the cluster), Create a two-machine cluster with one control-plane node
and one node (where your workloads, like Pods and Deployments run). (which controls the cluster), and one worker node
(where your workloads, like Pods and Deployments run).
┌──────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────┐
│ On the first machine: │ │ On the first machine: │
├──────────────────────────────────────────────────────────┤ ├──────────────────────────────────────────────────────────┤
master# kubeadm init control-plane# kubeadm init │
└──────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────┐
│ On the second machine: │ │ On the second machine: │
├──────────────────────────────────────────────────────────┤ ├──────────────────────────────────────────────────────────┤
node# kubeadm join <arguments-returned-from-init> worker# kubeadm join <arguments-returned-from-init> │
└──────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────┘
You can then repeat the second step on as many other machines as you like. You can then repeat the second step on as many other machines as you like.