19 lines
No EOL
259 B
Markdown
19 lines
No EOL
259 B
Markdown
### 查看当前工作上下文
|
|
```
|
|
kubectl config view
|
|
```
|
|
|
|
### 设置当前集群
|
|
```
|
|
kubectl config set current-context cluster-name
|
|
```
|
|
|
|
### 获取集群
|
|
```
|
|
kubectl config get-contexts
|
|
```
|
|
|
|
### 切换集群
|
|
```
|
|
kubectl config use-context cluster-name
|
|
``` |