Skip to content

kubectl under the hood #66

@zero2hj

Description

@zero2hj
  • 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)
  • kubectl cordon

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions