learning k8s with minikube

start clean

    #minikube delete --all
    minikube start --driver=docker --container-runtime=containerd --nodes 3

docker ps
    minikube status

    kubectl get nodes -o wide
kubectl label nodes minikube kubernetes.io/role=master
kubectl label nodes minikube-m02 kubernetes.io/role=worker
kubectl label nodes minikube-m03 kubernetes.io/role=worker

–either– eventually enable ingress using the plugin

    minikube addons enable ingress

–or– go for the full-blown thing

and make every node elegible

#kubectl get nodes --show-labels
kubectl describe node minikube | sed -n '/^Labels:/,/^Annotations:/p' | sed '$d'
kubectl describe node minikube-m02 | sed -n '/^Labels:/,/^Annotations:/p' | sed '$d'
kubectl label nodes minikube-m02 minikube.k8s.io/primary=true

    kubectl get pods -n ingress-nginx -o wide
    kubectl scale deploy -n ingress-nginx ingress-nginx-controller --replicas=2

moar options

    #minikube addons enable metrics-server

additional nodes

kind

    kubectl label nodes minikube ingress-ready=true
    kubectl label nodes minikube-m02 ingress-ready=true

resources

runtime

https://stackoverflow.com/questions/68753486/how-do-i-check-that-which-runtime-oci-cri-o-containerd-or-runc-is-used-by-me

multi-node

https://minikube.sigs.k8s.io/docs/tutorials/multi_node/

FW https://medium.com/cloudnloud/how-to-minikube-with-multi-node-setup-1159006fc80e

node labels

https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/

tutorials

FW https://aws.plainenglish.io/minikube-installation-and-creating-first-pod-6e4daee24d5f

ingress

https://github.com/kubernetes/minikube/issues/15953

https://github.com/kubernetes-sigs/kind/issues/3226

https://kind.sigs.k8s.io/docs/user/ingress/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun