Posts

Showing posts from 2024

Enable ingress

https://blog.raulnq.com/testing-the-nginx-ingress-controller-locally-docker-desktop   helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm install nginx-ingress ingress-nginx/ingress-nginx Run kubectl get ingressclass and kubectl get services to check the installation: First Deployment  kubectl create deployment web --image = gcr.io/google-samples/hello-app:1.0 kubectl expose deployment web --type = NodePort --port = 8080     Second Deployment    kubectl create deployment web2 --image = gcr.io/google-samples/hello-app:2.0 kubectl expose deployment web2 --port = 8080 --type = NodePort       apiVersion: networking.k8s.io/v1 kind: Ingress metadata:   name: example-ingress spec:   ingressClassName: nginx   rules:     - host: hello-world.example       http:         paths:        ...

minikube up cluster

  Start your cluster     minikube start   kubectl get po -A minikube kubectl -- get po -A   minikube dashboard start kube  kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0 kubectl expose deployment hello-minikube --type=NodePort --port=8080   kubectl get services hello-minikube minikube service hello-minikube kubectl port-forward service/hello-minikube 7080:8080