update kuber to working

This commit is contained in:
2025-06-24 20:47:06 +03:30
parent a028612669
commit b0cf699d74
10 changed files with 265 additions and 172 deletions

View File

@@ -0,0 +1,44 @@
## Node Management
### Listing Nodes
- **Show All Nodes**
```bash
kubectl get nodes
```
```bash
kubectl get nodes --show-lables
```
### Node Maintenance (Cordon/Drain)
- **Cordon a Node**
Prevent new pods from being scheduled on the node.
```bash
kubectl cordon <node-name>
```
- **Uncordon a Node**
Mark the node as schedulable again.
```bash
kubectl uncordon <node-name>
```
- **Drain a Node**
Evict all pods from the node (excluding those managed by DaemonSets).
```bash
kubectl drain <node-name> --ignore-daemonsets --delete-local-data
```
> **Warning:** Draining a node will evict running pods. Ensure that you plan this action to avoid service disruption.
---