Skip to content

Commit 4c2fd1b

Browse files
authored
Merge pull request #7879 from ahardin-rh/PR5709-ENT-36
[enterprise-3.6] PR#5709 CP and Revision History
2 parents 68fa5fd + ec6f2df commit 4c2fd1b

File tree

3 files changed

+52
-14
lines changed

3 files changed

+52
-14
lines changed

admin_guide/manage_nodes.adoc

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -241,31 +241,49 @@ controller] can be evacuated; the replication controllers create new pods on
241241
other nodes and remove the existing pods from the specified node(s). Bare pods,
242242
meaning those not backed by a replication controller, are unaffected by default.
243243

244-
To list pods that will be migrated without actually performing the evacuation,
245-
use the `--dry-run` option:
244+
To evacuate one or more nodes:
246245

247246
----
248-
$ oc adm manage-node <node1> <node2> \
249-
--evacuate --dry-run [--pod-selector=<pod_selector>]
247+
$ oc adm drain <node1> <node2>
250248
----
251249

252-
To actually evacuate all or selected pods on one or more nodes:
250+
You can force deletion of bare pods by using the `--force` option. When set to
251+
`true`, deletion continues even if there are pods not managed by a replication
252+
controller, ReplicaSet, job, daemonset, or StatefulSet:
253253

254254
----
255-
$ oc adm manage-node <node1> <node2> \
256-
--evacuate [--pod-selector=<pod_selector>]
255+
$ oc adm drain <node1> <node2> --force=true
257256
----
258257

259-
You can force deletion of bare pods by using the `--force` option:
258+
You can use `--grace-period` to set a period of time in seconds for each pod to
259+
terminate gracefully. If negative, the default value specified in the pod will
260+
be used:
260261

261262
----
262-
$ oc adm manage-node <node1> <node2> \
263-
--evacuate --force [--pod-selector=<pod_selector>]
263+
$ oc adm drain <node1> <node2> --grace-period=-1
264264
----
265265

266-
Alternatively, instead of specifying specific node names (e.g., `<node1>
267-
<node2>`), you can use the `--selector=<node_selector>` option to evacuate pods
268-
on selected nodes.
266+
You can use `--ignore-daemonsets` and set it to `true` to ignore
267+
daemonset-managed pods:
268+
269+
----
270+
$ oc adm drain <node1> <node2> --ignore-daemonset=true
271+
----
272+
273+
You can use `--timeout` to set the length of time to wait before giving up. A
274+
value of `0` sets an infinite length of time:
275+
276+
----
277+
$ oc adm drain <node1> <node2> --timeout=5s
278+
----
279+
280+
You can use `--delete-local-data` and set it to `true` to continue deletion even
281+
if there are pods using emptyDir (local data that will be deleted when the node
282+
is drained):
283+
284+
----
285+
$ oc adm drain <node1> <node2> --delete-local-data=true
286+
----
269287

270288
[[rebooting-nodes]]
271289
== Rebooting Nodes

admin_guide/revhistory_admin_guide.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
:experimental:
88

99
// do-release: revhist-tables
10+
as
11+
== Tues Feb 20 2018
12+
13+
// tag::admin_guide_tues_feb_20_2018[]
14+
[cols="1,3",options="header"]
15+
|===
16+
17+
|Affected Topic |Description of Change
18+
//Tues Feb 20 2018
19+
n|xref:../admin_guide/manage_nodes.adoc#admin-guide-manage-nodes[Managing Nodes]
20+
|Replaced outdated `oadm manage-node --evacuate` commands with xref:../admin_guide/manage_nodes.adoc#evacuating-pods-on-nodes[`oc adm drain` commands].
21+
|===
22+
23+
// end::admin_guide_tues_feb_20_2018[]]
24+
1025
== Fri Feb 16 2018
1126

1227
// tag::admin_guide_fri_feb_16_2018[]
@@ -18,7 +33,7 @@
1833
n|xref:../admin_guide/service_accounts.adoc#admin-sa-user-names-and-groups[Service Accounts]
1934
| Changed `serviceaccounts` to `serviceaccount` in the xref:../service_accounts.adoc#admin-sa-user-names-and-groups[User Names and Groups] section.
2035

21-
|xref:../admin_guide/manage_nodes.adoc#admin-guide-manage-nodes[Manging Nodes]
36+
|xref:../admin_guide/manage_nodes.adoc#admin-guide-manage-nodes[Managing Nodes]
2237
|Added new section on xref:../admin_guide/manage_nodes.adoc#managing-nodes-docker-reset[Resetting Docker Storage] to free up space on nodes.
2338

2439
|xref:../admin_guide/managing_networking.adoc#admin-guide-manage-networking[Managing Networking]

welcome/revhistory_full.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ The following sections aggregate the revision histories of each guide by publish
1010
date.
1111

1212
// do-release: revhist-tables
13+
14+
== Tues Feb 20 2018
15+
.Cluster Administration
16+
include::admin_guide/revhistory_admin_guide.adoc[tag=admin_guide_tues_feb_20_2018]
17+
1318
== Fri Feb 16 2018
1419
.Scaling Performance
1520
include::scaling_performance/revhistory_scaling_performance.adoc[tag=scaling_performance_fri_feb_16_2018]

0 commit comments

Comments
 (0)