Created
April 26, 2018 02:10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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