Tuesday, 29 August 2017

Installing kubectl on Linux


sai-HP ~ #  curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68.9M  100 68.9M    0     0  5528k      0  0:00:12  0:00:12 --:--:-- 6228k

sai-HP ~ # chmod +x ./kubectl

sai-HP ~ # sudo mv ./kubectl /usr/local/bin/kubectl

sai-HP ~ # kubectl config view
apiVersion: v1
clusters:
- cluster:
    certificate-authority: /root/.minikube/ca.crt
    server: https://192.168.99.100:8443
  name: minikube
contexts:
- context:
    cluster: minikube
    user: minikube
  name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
  user:
    client-certificate: /root/.minikube/apiserver.crt
    client-key: /root/.minikube/apiserver.key
sai-HP ~ #

 

sai-HP ~ # kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:8443

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

 

1 comment: