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 179: Zeile 179:
</syntaxhighlight>
</syntaxhighlight>


 
== Dashboard ==
<nowiki>####</nowiki> Dashboard
<nowiki>#</nowiki> Dashboard installieren<syntaxhighlight lang="bash">
 
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml
<nowiki>#</nowiki> Dashboard installieren
</syntaxhighlight><nowiki>#</nowiki> Zugriff von LAN / <nowiki>https://www.thegeekdiary.com/how-to-access-kubernetes-dashboard-externally/</nowiki><syntaxhighlight lang="bash">
 
<nowiki>#</nowiki> Zugriff von LAN / <nowiki>https://www.thegeekdiary.com/how-to-access-kubernetes-dashboard-externally/</nowiki>
 
kubectl -n kubernetes-dashboard edit service kubernetes-dashboard
kubectl -n kubernetes-dashboard edit service kubernetes-dashboard
 
</syntaxhighlight>type: NodePort                   ### clusterIP to NodePort
type: NodePort                   ### clusterIP to NodePort


<nowiki>#</nowiki> Create admin-user
<nowiki>#</nowiki> Create admin-user
Zeile 195: Zeile 191:


<nowiki>#</nowiki> Metrics Server installieren / <nowiki>https://www.scmgalaxy.com/tutorials/kubernetes-metrics-server-error-readiness-probe-failed-http-probe-failed-with-statuscode/</nowiki>
<nowiki>#</nowiki> Metrics Server installieren / <nowiki>https://www.scmgalaxy.com/tutorials/kubernetes-metrics-server-error-readiness-probe-failed-http-probe-failed-with-statuscode/</nowiki>
Download metrics-server


wget <nowiki>https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml</nowiki>
wget <nowiki>https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml</nowiki>


- Download <nowiki>https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml</nowiki>
- Modify and add "- --kubelet-insecure-tls" in deployment.spec.template.spec.containers.args<syntaxhighlight lang="bash">
 
kubectl apply -f components.yaml
- Modify and add "- --kubelet-insecure-tls" in deployment.spec.template.spec.containers.args
</syntaxhighlight><nowiki>###############################</nowiki>
 
- kubectl apply -f components.yaml
 
<nowiki>###############################</nowiki>


<nowiki>###</nowiki>Speziell gitlab
<nowiki>###</nowiki>Speziell gitlab

Navigationsmenü