Skip to content

Official documentation

Documentation of installation link: doc

Installing kubectl

  1. Download and install latest kubectl
1
  curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
  1. Add executable mode for kubectl
1
  chmod +x ./kubectl
  1. Move kubectl binary into your PATH
1
  sudo mv ./kubectl /usr/local/bin/kubectl
  1. Check the version
1
  kubectl version --client
  1. Show running Pods in cluster
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  kubectl get po -A # -->
  # NAMESPACE     NAME                             READY STATUS  RESTARTS AGE
  # kube-system   coredns-66bff467f8-dcfxn         1/1   Running 0        ??m
  # kube-system   coredns-66bff467f8-tdgpn         1/1   Running 0        ??m
  # kube-system   etcd-minikube                    1/1   Running 0        ??m
  # kube-system   kindnet-4j8t6                    1/1   Running 0        ??m
  # kube-system   kube-apiserver-minikube          1/1   Running 0        ??m
  # kube-system   kube-controller-manager-minikube 1/1   Running 0        ??m
  # kube-system   kube-proxy-ft67m                 1/1   Running 0        ??m
  # kube-system   kube-scheduler-minikube          1/1   Running 0        ??m
  # kube-system   storage-provisioner              1/1   Running 0        ??m

Last update: 2021-10-04