Monday, 10 January 2022

Kubernetes - messing about with nodes and taints

I've probably blogged about this before, but, today, I'm tinkering with Kubernetes ( well, OpenShift Container Platform ) nodes, in terms of understanding what taints are applied to what nodes, in order that I can assign pods accordingly.

This command was immensely useful: -

kubectl get nodes -o,TAINTS:.spec.taints

NAME           TAINTS    <none>   [map[effect:NoExecute key:dedicated value:transit]]   [map[effect:NoExecute key:dedicated value:transit]]   [map[effect:NoExecute key:dedicated value:transit]]   [map[effect:NoExecute key:dedicated value:edge]]   [map[effect:NoExecute key:dedicated value:edge]]    <none>   [map[effect:NoExecute key:dedicated value:edge]]    <none>
with thanks to StackOverflow: -

The official Kubernetes documentation has much to say about taints: -

No comments:

TIL - read-only variables in Linux

 A co-worker was seeing an exception: -  line 8: TMOUT: readonly variable when trying to SCP a file from a remote Linux box. I did some digg...