memo.md (1508B)
1 ip table 2 3 | node_name | ip | 4 | --- | --- | 5 | ironkube-con | 22 | 6 | ironkube-work01 | 18 | 7 | ceres | 27 | 8 9 ``` 10 kubeadm join 192.168.0.22:6443 --token t7phv0.axqbyhozxvuvv04q \ 11 --discovery-token-ca-cert-hash sha256:e3c31e48d01a7e5724778921cb411afa8e48f9d2e9b9573d13848f82fff69410 12 ``` 13 14 ``` 15 Your Kubernetes control-plane has initialized successfully! 16 To start using your cluster, you need to run the following as a regular user: 17 18 mkdir -p $HOME/.kube 19 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config 20 sudo chown $(id -u):$(id -g) $HOME/.kube/config 21 Alternatively, if you are the root user, you can run: 22 23 export KUBECONFIG=/etc/kubernetes/admin.conf 24 25 You should now deploy a pod network to the cluster. 26 Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: https://kubernetes.io/docs/concepts/cluster-administration/addons/ 27 28 Then you can join any number of worker nodes by running the following on each as root: 29 kubeadm join 192.168.0.20:6443 --token zt030g.2dtrbf8zeq0ubqj8 \ 30 --discovery-token-ca-cert-hash sha256:58d950d150754c3f73fef844eba6e905335ce8172ba920f9a8fbefce2cfd720e 31 tetsu@ironkube-con:~$ kubectl get nodes 32 ```