1. Check cluster status:
minikube status
kubectl cluster-info
  1. Deploy a sample application:
# Deploy a simple nginx web server
kubectl create deployment hello-nginx --image=nginx
  1. View your deployments and pods:
kubectl get deployments
kubectl get pods
  1. Expose the application:
kubectl expose deployment hello-nginx --type=ssNodePort --port=80
  1. Access the application:
minikube service hello-nginx
  1. View the Kubernetes dashboard:
minikube dashboard

  1. enable ingress
minikube addons enable ingress

Some other useful commands:

# Scale your deployment
kubectl scale deployment hello-nginx --replicas=3
 
# View logs of a pod
kubectl logs <pod-name>
 
# Shell into a pod
kubectl exec -it <pod-name> -- /bin/bash
 
# Delete resources
kubectl delete deployment hello-nginx
kubectl delete service hello-nginx
 
# Stop/Start minikube
minikube stop
minikube start

1. Access the kube-scheduler configuration

In a Kubernetes cluster, the kube-scheduler runs as a static Pod in the control plane. The configuration of the scheduler is typically defined in the kube-scheduler manifest located in /etc/kubernetes/manifests/kube-scheduler.yaml on the control plane node.

For Minikube, you can access this file by SSHing into the Minikube node.

Command:

minikube ssh

View the kube-scheduler manifest:

cat /etc/kubernetes/manifests/kube-scheduler.yaml

Look for options in the command section, such as —config, or other flags specifying custom settings.