6-k8s With Minikube Sept 2024
6-k8s With Minikube Sept 2024
===================
minikube vs kubeadm
https://www.padok.fr/en/blog/minikube-kubeadm-kind-k3s
Step 1 :
------------
install kubectl:kubectl is a command line tool,
using kubectl we can connect to k8s cluster from our computer .
Step 2 :
install minikube :
minikube: single node cluster
https://minikube.sigs.k8s.io/docs/start/
minikube-window-amd64
https://github.com/kubernetes/minikube/releases/tag/v1.24.0
https://github.com/kubernetes/minikube/releases/download/v1.24.0/minikube-windows-
amd64.exe
Once you download both exe file , just move these two file to separate
directory/folder like below
and set env variable
step 3:
docker must be install in advance
Step 4 :
minikube version
step 5 :
There is multiple driver using any of them you can start your minikube
Hyper-v
Docker
kubectl cluster-info
kubectl get node
step 8:
--------
refer spring boot + docker + k8s application (empappcicd)
run command:
-------------
docker build -t rgupta00/empappcicd:1.2 .
docker push rgupta00/empappcicd:1.2
minikube dashboard
Delete Deployment
kubectl delete deployment empapp-deploy
minikube stop
minikube delete