You are browsing a read-only backup copy of Wikitech. The live site can be found at

Kubernetes: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
(link to other Kubernetes related pages; formatting; lead paragraph)
(→‎See also: update links)
Line 25: Line 25:

== See also ==
== See also ==
* [[Tools Kubernetes|Tool Labs Kubernetes]]
* [[Portal:Toolforge/Admin/Kubernetes|Toolforge Kubernetes cluster design and administration]]
* [[Help:Tool_Labs/Web/Kubernetes|Tool Labs Kubernetes webservices help]]
* [[Help:Toolforge/Web|Toolforge Kubernetes webservice help]]
* [[Help:Toolforge/Kubernetes|Toolforge Kubernetes general help]]

Revision as of 22:30, 29 July 2017

Kubernetes (often abbreviated k8s) is an open-source system for automating deployment, and management of applications running in containers. This page collects some notes/docs on the Kubernetes setup in the Foundation production environment.


Rebooting a worker node

To reboot a worker node, use kubectl drain, it will configure the worker node to no longer create new pods and move the existing pods to other workers. Draining the node will take 30-60 seconds.

# kubectl drain kubernetes1001.eqiad.wmnet
# kubectl describe pods | grep Node
Node:           kubernetes1002.eqiad.wmnet/
Node:           kubernetes1002.eqiad.wmnet/
Node:           kubernetes1003.eqiad.wmnet/
Node:           kubernetes1003.eqiad.wmnet/
Node:           kubernetes1004.eqiad.wmnet/

When the node has been rebooted, it can be configured to reaccept pods using kubectl uncordon, e.g.

# kubectl uncordon kubernetes1001.eqiad.wmnet

The pods are not rebalanced automatically, i.e. the rebooted node is free of pods initially.

See also