kubernetes:install
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kubernetes:install [2026/02/05 12:18] – ms | kubernetes:install [2026/02/05 14:49] (current) – ms | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| </ | </ | ||
| - | === Kubernetes Pakete installieren === | + | ==== Kubernetes Pakete installieren |
| < | < | ||
| curl -fsSL https:// | curl -fsSL https:// | ||
| Line 104: | Line 104: | ||
| systemctl restart containerd | systemctl restart containerd | ||
| </ | </ | ||
| - | == Containerd anpassen == | + | == Containerd |
| - | Eventuell muss das Socker | + | Socket |
| < | < | ||
| crictl config runtime-endpoint unix:/// | crictl config runtime-endpoint unix:/// | ||
| Line 113: | Line 113: | ||
| crictl --runtime-endpoint=unix:/// | crictl --runtime-endpoint=unix:/// | ||
| </ | </ | ||
| + | ===== Folgenden Schritt nur auf der Control-Pane durchführen. ===== | ||
| + | Wenn die Control-Plane folgende IP-Adresse hat: 192.168.1.31 | ||
| + | < | ||
| + | kubeadm init --control-plane-endpoint 192.168.1.31 --pod-network-cidr 192.168.0.0/ | ||
| + | </ | ||
| + | Am Ende wird eine Zeile ausgegeben die auf den Worker-Nodes ausgeführt werden muss um diesen Worker zum Cluster hinzu zu fügen. | ||
| + | < | ||
| + | kubeadm join 192.168.15.39: | ||
| + | --discovery-token-ca-cert-hash sha256: | ||
| + | </ | ||
| + | ===== Kubeconfig einrichten ===== | ||
| + | Auf der Control-Plane als normaler User ausführen | ||
| + | < | ||
| + | mkdir -p $HOME/ | ||
| + | sudo cp -i / | ||
| + | sudo chown $(id -u):$(id -g) $HOME/ | ||
| + | </ | ||
| + | ===== Worker-Nodes zum Kubernetes Cluster hizufügen ===== | ||
| + | Auf allen Worker-Nodes muss der gleiche **kubeadm join** durchgeführt werden.\\ | ||
| + | **kubeadm join** Kommando neu generieren: | ||
| + | < | ||
| + | kubeadm token create --print-join-command | ||
| + | kubeadm join 192.168.1.31: | ||
| + | </ | ||
| ====== Kubernetes Upgrage ====== | ====== Kubernetes Upgrage ====== | ||
kubernetes/install.1770293929.txt.gz · Last modified: 2026/02/05 12:18 by ms