Belajar Sendiri

Commands

kubeadm init

kubeadm init [--pod-network-cidr <cidr>] [--control-plane-endpoint <host:port>]

Risk: Careful

What it does

Turns a fresh machine into the manager's office: certificates, kubeconfig files, static pod manifests and a join token.

When to use it

Once, on the first machine of a new cluster. Real machines only, not the practice terminal.

Example

$ sudo kubeadm init --pod-network-cidr 10.244.0.0/16

Build the office, and give pods their own address range.