This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
система_kubernetes [2022/08/16 10:09] val [Настройка доступа к Insecure Private Registry] |
система_kubernetes [2022/09/11 20:28] val [Развертывание] |
||
---|---|---|---|
Line 101: | Line 101: | ||
<code> | <code> | ||
+ | root@nodeN:~# apt install apt-transport-https curl | ||
+ | root@nodeN:~# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add | ||
+ | root@nodeN:~# apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main" | ||
+ | root@nodeN:~# apt install kubeadm kubelet kubectl kubernetes-cni | ||
+ | root@nodeN:~# swapoff -a | ||
+ | root@nodeN:~# cat /etc/fstab | ||
+ | </code><code> | ||
... | ... | ||
- | root@node1:~# kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.13.210 | + | #/swap.img ... |
+ | ... | ||
+ | </code><code> | ||
+ | root@node1:~# kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.13.201 | ||
... | ... | ||
student@node1:~$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | student@node1:~$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | ||
... | ... | ||
student@node1:~$ kubectl get pod -o wide --all-namespaces | student@node1:~$ kubectl get pod -o wide --all-namespaces | ||
+ | |||
+ | student@node2_3:~$ kubeadm join 192.168.13.201:6443 --token zyj3q3.a7wtyb0u2uugnvlr \ | ||
+ | --discovery-token-ca-cert-hash sha256:2444ee53a844bce1b497b18bf93c0a0c0694233cb2e6b4e0be0fb0ee2c74925e | ||
student@node1:~$ kubectl get nodes -o wide | student@node1:~$ kubectl get nodes -o wide |