Stacked nodes

In order to run a set of stack nodes, you'll need to bootstrap the first control plane node with a kubeadm-conf-01.yaml template. Again, this example is using Calico, but you can configure the networking as you please. You'll need to substitute the following values with your own in order to make the example work:

  • LB_DNS
  • LB_PORT
  • CONTROL01_IP
  • CONTROL01_HOSTNAME

Open up a new file, kubeadm-conf-01.yaml, with your favorite IDE:

apiVersion: kubeadm.k8s.io/v1alpha2kind: MasterConfigurationkubernetesVersion: v1.11.0apiServerCertSANs:- "LB_DNS"api:   controlPlaneEndpoint: "LB_DNS:LB_PORT"etcd: local:   extraArgs:     listen-client-urls: "https://127.0.0.1:2379,https://CONTROL01_IP:2379"     advertise-client-urls: "https://CONTROL01_IP:2379"

Get Getting Started with Kubernetes - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.