| सर्वर दुनिया | गोपनीयता नीति | सहायता / संपर्क करें |
670 / 129125244
|
Kubernetes : वर्कर नोड कॉन्फ़िगर करें2023/09/04 |
|
मल्टी नोड्स Kubernetes क्लस्टर को कॉन्फ़िगर करने के लिए Kubeadm स्थापित करें।
यह उदाहरण निम्न प्रकार से पर्यावरण पर आधारित है।
-----------+---------------------------+--------------------------+------------
| | |
eth0|10.0.0.25 eth0|10.0.0.71 eth0|10.0.0.72
+----------+-----------+ +-----------+-----------+ +-----------+-----------+
| [ ctrl.srv.world ] | | [snode01.srv.world] | | [snode02.srv.world] |
| Control Plane | | Worker Node | | Worker Node |
+----------------------+ +-----------------------+ +-----------------------+
|
| [1] | |
| [2] | Kubernetes क्लस्टर में शामिल हों जिसे कंट्रोल प्लेन नोड पर आरंभ किया गया है। शामिल होने का आदेश केवल एक है [kubeadm join ***] जो क्लस्टर के प्रारंभिक सेटअप पर परिणामों के नीचे दिखाया गया था।. |
|
root@snode01:~# kubeadm join 10.0.0.25:6443 --token sx7691.vhnz9i9szyqecy6e \ --discovery-token-ca-cert-hash sha256:6166ac8d73379081c2ca2b9625480b3f2cc992f571659e776b68d676e84cc3d9 [preflight] Running pre-flight checks [preflight] Reading configuration from the cluster... [preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml' [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Starting the kubelet [kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap... This node has joined the cluster: * Certificate signing request was sent to apiserver and a response was received. * The Kubelet was informed of the new secure connection details. Run 'kubectl get nodes' on the control-plane to see this node join the cluster. # यदि उपरोक्त संदेश दिखाया गया है तो ठीक है |
| [3] | Control Plane नोड पर स्थिति सत्यापित करें। यदि सभी स्टेटस तैयार हैं तो यह ठीक है। |
|
root@ctrl:~# kubectl get nodes NAME STATUS ROLES AGE VERSION ctrl.srv.world Ready control-plane 19m v1.25.3 snode01.srv.world Ready <none> 4m49s v1.25.3 snode02.srv.world Ready <none> 80s v1.25.3 |
| Sponsored Link |
|
|