Kubernetes Cluster in Proxmox VE (AlmaLinux/CentOS): Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:


Anleitung um ein Kubernetes Cluster innerhalb von Proxmox VE einzurichten.
Anleitung um ein Kubernetes Cluster innerhalb von Proxmox VE einzurichten.




Zeile 37: Zeile 38:
rm /etc/containerd/config.toml
rm /etc/containerd/config.toml
containerd config default | tee /etc/containerd/config.toml
containerd config default | tee /etc/containerd/config.toml
</syntaxhighlight><nowiki>#</nowiki> Edit config.toml
</syntaxhighlight><nowiki>#</nowiki> Die neu erzeugte config.toml bearbeiten<syntaxhighlight lang="bash">
 
vi /etc/containerd/config.toml
vi /etc/containerd/config.toml
 
</syntaxhighlight>Folgenden Absatz suchen und <code>SystemdCgroup</code> auf '''true''' setzen (Suchen in vi mit <code>/<Suchbegriff></code>):<syntaxhighlight lang="bash" line="1">
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
 
            BinaryName = ""
            BinaryName = ""
            CriuImagePath = ""
 
            CriuPath = ""
            CriuImagePath = ""
            CriuWorkPath = ""
 
            IoGid = 0
            CriuPath = ""
            IoUid = 0
 
            NoNewKeyring = false
            CriuWorkPath = ""
            NoPivotRoot = false
 
            Root = ""
            IoGid = 0
            ShimCgroup = ""
 
            SystemdCgroup = false
            IoUid = 0
</syntaxhighlight><nowiki>#</nowiki><syntaxhighlight lang="bash">
 
            NoNewKeyring = false
 
            NoPivotRoot = false
 
            Root = ""
 
            ShimCgroup = ""
 
            SystemdCgroup = true #!Auf true setzen!
 
<nowiki>#</nowiki>
 
vi /etc/sysctl.conf
vi /etc/sysctl.conf
 
</syntaxhighlight>Folgende Zeile am Ende einfügen, bzw. auskommentieren, falls schon vorhanden:<syntaxhighlight lang="bash">
net.ipv4.ip_forward=1
net.ipv4.ip_forward=1
 
</syntaxhighlight><nowiki>#</nowiki> Module config / Enable bridge netfilter<syntaxhighlight lang="bash">
<nowiki>#</nowiki> Module config / Enable bridge netfilter
 
vi /etc/modules-load.d/k8s.conf
vi /etc/modules-load.d/k8s.conf
 
</syntaxhighlight>Einfügen:<syntaxhighlight lang="bash">
br_netfilter
br_netfilter
 
</syntaxhighlight><nowiki>#</nowiki> Reboot
<nowiki>#</nowiki> Reboot


reboot
reboot
Zeile 255: Zeile 239:
== Quellen ==
== Quellen ==
https://www.youtube.com/watch?v=U1VzcjCB_sY
https://www.youtube.com/watch?v=U1VzcjCB_sY
https://techviewleo.com/how-to-install-docker-ce-on-almalinux/

Navigationsmenü