# Install minikube ```shell brew install minikube ``` # Create minikube cluster ```shell minikube start ``` # Get all nodes ```shell kubectl get nodes ``` # Describe all nodes ```shell kubectl describe nodes ``` # Deploy a simple application on minikube ```shell kubectl create deployment web --image nginx ``` ## Check what happen under the hood by querying the events ```shell kubectl get events ``` ## Check the deployment status ```shell kubectl get deploy ``` ## Get the application pods info ```shell kubectl get pods kubectl get pods -o wide ``` ## Expose the application through service ```shell kubectl expose deployment/web --port 80 --type NodePort ``` ## Get the application exposed port ```shell kubectl get svc ``` ## Get the IP of the minikube cluster ```shell minikube ip ``` ## Scale the application ```shell kubectl scale deployment/web --replicas 2 ``` # Create a template by creating a deployment and output the definition as yaml ```shell kubectl create deployment web --image=nginx --dry-run -o yaml ``` # Create a deployment using config file ```shell kubectl apply -f .yaml ```