2020年9月10日星期四

Introduction Of Kubernetes K8s

1. Kubernetes Components

Components of Kubernetes
Kubernetes 组件

2. Install kubectl in 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"

$ mv ./kubectl /usr/local/bin/kubectl
$ chmod  775  /usr/local/bin/kubectl
$ kubectl version --client 
 Client Version: version.Info{Major:"1"
 Minor:"19"
 GitVersion:"v1.19.1"
 GitCommit:"206bcadf021e76c27513500ca24182692aabd17e"
 GitTreeState:"clean"
 BuildDate:"2020-09-09T11:26:42Z"
 GoVersion:"go1.15"
 Compiler:"gc"
 Platform:"linux/amd64"}

3. Check kubectl connect to cluster-info 

$ kubectl cluster-info dump 
The connection to the server localhost:8080 was refused - 
did you specify the right host or port?

没有评论: