typora/note/K8S/学习笔记/kubectl.md
2024-12-12 10:48:55 +08:00

23 lines
287 B
Markdown

### 常用命令
#### 1. 标签相关
##### 1.1 查看节点标签
```bash
kubectl get node --show-labels
```
##### 1.2 给节点打标签
```bash
kubectl label node vm-worker-02 ingress=true
```
##### 1.3 删除节点标签
```bash
kubectl label node vm-worker-02 ingress-
```