Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
added lab for removing node
Browse files Browse the repository at this point in the history
  • Loading branch information
Developer committed May 27, 2018
1 parent 51d7ecc commit 73c7b05
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

These labs are specific for the Operations team or any OpenShift Admin.

## Lab Exercises
## Lab Exercises

Setting up Cluster

Expand All @@ -27,8 +27,10 @@ Standalone Labs
* Lab 12. [Using `oc adm top`](oc_adm_top.md)
* Lab 13. [Idling Applications](idling_applications.md)
* Lab 14. [Deploying Cloudforms as a container](deploying_cfme.md)
* Lab 16. [Removing a Node from the cluster](removing_node.md)
* Lab 17. [Reset a Node](reset_node.md)

## Extended Lab Exercises
## Extended Lab Exercises

Labs that require additional resources (e.g. storage, servers, services)

Expand Down
18 changes: 18 additions & 0 deletions removing_node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Removing a node
In this lab you will safely remove a node from the Openshift Cluster.


$ oc get nodes

## determine the node you want to remove, make it unschedulable
$ oc adm manage-node <node> --schedulable=false
## ensure it is correctly labeled as unschedulable
$ oc get nodes
## e.g.
## ip-172-31-21-67.us-east-2.compute.internal Ready,SchedulingDisabled compute 10d v1.9.1+a0ce1bc657
## evacuate pods
$ oc adm drain <node> --ignore-daemonsets --delete-local-data --force
## check that the node has no running pods
$ oc adm manage-node <node> --list-pods
## delete nodes
$ oc delete node <node>

0 comments on commit 73c7b05

Please sign in to comment.