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

K
KKeine Bearbeitungszusammenfassung
Zeile 17: Zeile 17:
</syntaxhighlight>Für die Worker-Nodes z.B.:<syntaxhighlight lang="bash" line="1">
</syntaxhighlight>Für die Worker-Nodes z.B.:<syntaxhighlight lang="bash" line="1">
k8s-node-1
k8s-node-1
</syntaxhighlight>Hosts-Datei:<syntaxhighlight lang="bash">
vi /etc/hosts
</syntaxhighlight><syntaxhighlight lang="bash" line="1">
127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.2.65  k8s-ctrlr.my.domain k8s-ctrlr
</syntaxhighlight>
</syntaxhighlight>


<nowiki>#</nowiki> Containerd installieren<syntaxhighlight lang="bash">
<nowiki>#</nowiki> Containerd installieren<syntaxhighlight lang="bash">
Zeile 95: Zeile 86:
DNS1=192.168.2.1
DNS1=192.168.2.1
DNS2=1.1.1.1
DNS2=1.1.1.1
</syntaxhighlight>Hosts-Datei anpassen:<syntaxhighlight lang="bash">
vi /etc/hosts
</syntaxhighlight><syntaxhighlight lang="bash" line="1">
127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.2.65  k8s-ctrlr.my.domain k8s-ctrlr
</syntaxhighlight>
</syntaxhighlight>


== Kubernetes installieren ==
== Kubernetes installieren ==
Zeile 150: Zeile 149:
DNS1=192.168.2.1
DNS1=192.168.2.1
DNS2=1.1.1.1
DNS2=1.1.1.1
</syntaxhighlight>
Hosts-Datei anpassen:<syntaxhighlight lang="bash">
vi /etc/hosts
</syntaxhighlight><syntaxhighlight lang="bash" line="1">
127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.2.65  k8s-ctrlr.my.domain k8s-ctrlr
</syntaxhighlight>
</syntaxhighlight>