Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.38 KB

File metadata and controls

36 lines (26 loc) · 1.38 KB

kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl
  • Linux
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl

minikube

  • Mac: brew cask install minikube
  • Linux: curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

Run Local Cluster

  • docker build -t sample-docker-image .
  • docker images
  • minikube start
  • kubectl run sample-cluster --image=sample-docker-image --image-pull-policy=Never
  • kubectl get deployments
    • kubectl delete deployment ...
  • kubectl get pods
    • kubectl delete pod ...
  • minikube dashboard