-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
- kubectl drain in dry-run mode
kubectl drain k8s-node81 --ignore-daemonsets --delete-local-data --dry-run=client -v 8- it actually delete or evict pods
- evict pods by api d.Client.PolicyV1().Evictions(eviction.Namespace).Evict(d.getContext(), eviction)
- it actually delete or evict pods
- kubectl cordon
- I0623 18:16:50.684758 49036 request.go:1097] Request Body: {"spec":{"unschedulable":true}}
I0623 18:16:50.684912 49036 round_trippers.go:421] PATCH https://192.168.12.76:6443/api/v1/nodes/k8s-node81
- I0623 18:16:50.684758 49036 request.go:1097] Request Body: {"spec":{"unschedulable":true}}