From bb011a9b7f8c693025125ca3d82ce62604c8d9ce Mon Sep 17 00:00:00 2001 From: Hauel Date: Tue, 29 Oct 2024 18:20:00 +0100 Subject: [PATCH] futher experiments --- Das Kubernetis unter windows WSL.md | 39 +++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/Das Kubernetis unter windows WSL.md b/Das Kubernetis unter windows WSL.md index 47d0a9a..7c095ea 100644 --- a/Das Kubernetis unter windows WSL.md +++ b/Das Kubernetis unter windows WSL.md @@ -63,8 +63,18 @@ als nächstes müssen wir podman Installieren ``` sudo apt -y install podman ``` +now enable podman + +``` +sudo systemctl start podman + +sudo systemctl enable podman +``` + +you can inform yourself if it worked by the **status** option of systemctl + now you can logout and test podman mit **podman -v** - + this are the tools you need for the minicube installation ``` @@ -82,6 +92,9 @@ sudo install minikube-linux-amd64 /usr/local/bin/minikube type ** minikube version** to test minikube. start Minikube + +you can do the following step as root + ``` sudo minikube start --force ``` @@ -93,6 +106,27 @@ minikube status now you can install kubectl follow this official guidlines. https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management +you want to use the cluster from external therefore we have to add ouer user to the sudoers group + +``` +sudo usermod -a -G $user +``` + +then you have to add your minicube config to run as non root + +```` + minikube config set rootless true +```` + +we now bend the ip to 0.0.0.0 therefore we use the minikube option --listen-address='0.0.0.0' + +This is a potential securaty risc but it shuld allow us to acsess the ip of wsl system . + +(and it dont works therefore i shuld dig into that difrently) + + + + Based on this tutorills https://medium.com/@areesmoon/installing-minikube-on-ubuntu-20-04-lts-focal-fossa-b10fad9d0511 @@ -148,7 +182,7 @@ im anshluss bitte Helm Chat installieren das sollte die konfiguration von kube ``` winget install Helm.Helm -``` +``` Based on: https://helm.sh/docs/intro/install/ https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/ @@ -167,4 +201,3 @@ kubectl get all >> many things you normaly do in the cli you can now do by hand :) -