| सर्वर दुनिया | गोपनीयता नीति | सहायता / संपर्क करें |
3532 / 128458373
|
MicroK8s : नोड्स जोड़ें2024/06/14 |
|
यदि आप अपने MicroK8s क्लस्टर में अधिक नोड्स जोड़ना चाहते हैं, तो निम्नानुसार कॉन्फ़िगर करें। |
|
| [1] | प्राथमिक नोड पर क्लस्टर में शामिल होने के लिए सुनिश्चित आदेश दें। |
|
root@dlp:~# microk8s add-node From the node you wish to join to this cluster, run the following: microk8s join 10.0.0.30:25000/ab8374269e5e7ffa20cc51b7e79b8986/0ab70ce72574 Use the '--worker' flag to join a node as a worker not running the control plane, eg: microk8s join 10.0.0.30:25000/ab8374269e5e7ffa20cc51b7e79b8986/0ab70ce72574 --worker If the node you are adding is not reachable through the default interface you can use one of the following: microk8s join 10.0.0.30:25000/ab8374269e5e7ffa20cc51b7e79b8986/0ab70ce72574 |
| [2] | एक नए नोड पर, MicroK8s इंस्टॉल करें और क्लस्टर में शामिल हों। बस प्राथमिक नोड पर प्रदर्शित कमांड दर्ज करें। इसे वर्कर नोड के रूप में जोड़ने के लिए, [--वर्कर] विकल्प जोड़ें। |
|
root@node01:~#
snap install microk8s --classic microk8s (1.29/stable) v1.29.4 from Canonical✓ installed # [1] में पुष्टि की गई कमांड चलाएँ root@node01:~# microk8s join 10.0.0.30:25000/ab8374269e5e7ffa20cc51b7e79b8986/0ab70ce72574 --worker
Contacting cluster at 10.0.0.30
The node has joined the cluster and will appear in the nodes list in a few seconds.
This worker node gets automatically configured with the API server endpoints.
If the API servers are behind a loadbalancer please set the '--refresh-interval' to '0s' in:
/var/snap/microk8s/current/args/apiserver-proxy
and replace the API server endpoints with the one provided by the loadbalancer in:
/var/snap/microk8s/current/args/traefik/provider.yaml
Successfully joined the cluster.
|
| [3] | प्राथमिक नोड पर, सुनिश्चित करें कि क्लस्टर में एक नया नोड जोड़ा गया है। |
|
root@dlp:~# microk8s kubectl get nodes NAME STATUS ROLES AGE VERSION dlp.srv.world Ready <none> 33m v1.29.4 node01.srv.world Ready <none> 117s v1.29.4 |
| [4] | एक नोड को हटाने के लिए, निम्नानुसार सेट करें। |
|
# पहले लक्ष्य नोड पर क्लस्टर से निकलें root@node01:~# microk8s leave Configuring services. Generating new cluster certificates. Waiting for node to start. # प्राथमिक नोड पर, लक्ष्य नोड को हटा दें root@dlp:~# microk8s remove-node node01.srv.world
microk8s kubectl get nodes NAME STATUS ROLES AGE VERSION dlp.srv.world Ready <none> 35m v1.29.4 |
| Sponsored Link |
|
|