etcd
Backups/RecoveryK3s
?K3s
läuft mit SQLite
oder einer externen Datenbank (Postgresql
z.Bsp.)Talos
benutzt eine replizierte etcd
Datenbank für den Cluster-StateK3s
ist eingeschränkter im Funktionsumfangtalosctl
runterladen:
curl -sL https://talos.dev/install | sh
ISO herunterladen:
👁️ https://github.com/siderolabs/talos/releases (metal)talosctl cluster create
lokalen Test-Cluster erstellen (→ Schritt 10 springen)
Config generieren:
talosctl gen config
my-name
https://$CONTROL_PLANE_IP:6443
--output-dir _out
_out/worker.yaml
und _out/controllplane.yaml
configs bearbeiten
Controllplane installieren:
talosctl apply-config
--insecure
-n $CONTROL_PLANE_IP
--file _out/controlplane.yaml
Controllplane installieren:
talosctl apply-config
--insecure
-n $CONTROL_PLANE_IP
--file _out/controlplane.yaml
Worker installieren:
talosctl apply-config
--insecure
-n $WORKER_IP
--file _out/worker.yaml
In der Talos config die IP der Controllplane setzen:
export TALOSCONFIG="_out/talosconfig"
talosctl config endpoint $CONTROL_PLANE_IP
talosctl config node $CONTROL_PLANE_IP
(Nach export -n
nicht mehr benötigt)
In der Talos config die IP der Controllplane setzen:
export TALOSCONFIG="_out/talosconfig"
talosctl config endpoint $CONTROL_PLANE_IP
talosctl config node $CONTROL_PLANE_IP
(Nach export -n
nicht mehr benötigt)
etcd
bootstrap:
talosctl -n $CONTROL_PLANE_IP bootstrap
kubeconfig
speichern:
talosctl -n $CONTROL_PLANE_IP kubeconfig .
talosctl health
talosctl dashboard
etcd
BackupsAm besten per cronjob!
talosctl -n $CONTROL_PLANE_IP etcd snapshot db.snapshot
talosctl -n $CONTROL_PLANE_IP bootstrap
--recover-from=./db.snapshot
talosctl -n $CONTROL_PLANE_IP
upgrade-k8s --to 1.28.2
talosctl upgrade -n NODE_IP_1,NODE_IP_2
--image ghcr.io/siderolabs/installer:v1.5.0
Proxmox Installationsanleitung | https://www.talos.dev/v1.5/talos-guides/install/virtualized-platforms/proxmox/ |
FluxCD Empfehlung | https://fluxcd.io/ |
Fediverse | @Yonggan@iceshrimp.de |
Matrix | @yonggan:matrixapp.chat |
Slides | https://talos.obco.pro/ |