Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samirbehara-zz/c43379e23b8a0de5c0170a34fff51ade to your computer and use it in GitHub Desktop.
Save samirbehara-zz/c43379e23b8a0de5c0170a34fff51ade to your computer and use it in GitHub Desktop.
// Install Minikube
brew cask install minikube
// Verify that minikube is properly installed
minikube version
// Install the Kubernetes Command Line Utility - kubectl
brew install kubectl
// Start Minikube
minikube start
// Check Minikube status
minikube status
// View Kubernetes Dashboard
minikube dashboard
// View Kubernetes Cluster Information
kubectl cluster-info
// View the nodes that can be used to host your applications
kubectl get nodes
// Create a new deployment
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
// List the deployments
kubectl get deployments
// Expose the deployment to an external IP
kubectl expose deployment hello-minikube --type=NodePort
// View the K8s services
kubectl get services
// View the URL that you can hit via browser
minikube service hello-minikube --url
// View the K8s pods in the cluster
kubectl get pods
// View the details of a specific resource
kubectl describe svc hello-minikube
// Delete the service and deployment
kubectl delete service,deployment hello-minikube
// Shut down the Minikube cluster
minikube stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment