Skip to content

oc adm drain: add --selector and --pod-selector #17554

@dustymabe

Description

@dustymabe

oc adm manage-node --evacuate is now deprecated but there was some functionality there that is missing in the new drain command. Particularly --selector and --pod-selector. The --pod-selector on evacuate allowed me to workaround #17522. See #17522 (comment):

[root@origin-master-1 ~]# oc adm manage-node --evacuate --force x.x.x.x --pod-selector='glusterfs notin (storage-pod)'                                                                                                                
Flag --evacuate has been deprecated, use 'oadm drain NODE' instead

Migrating these pods on node:
<snip>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions