Page MenuHomePhabricator

toolforge: label kubernetes nodes with nfs access
Closed, ResolvedPublic

Description

Add a Kubernetes label to all Toolforge nodes with NFS mounted. This lets us build nodes without NFS dependencies for some parts of the infrastructure, such as for the ingress layer and the control plane.

possibly related: T242637: Create a "health check" for Kubernetes worker nodes which validates local Toolforge config

Event Timeline

Change 773933 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] kubeadm: label nodes with nfs mounts

https://gerrit.wikimedia.org/r/773933

Change 773933 merged by David Caro:

[operations/puppet@production] kubeadm: label nodes with nfs mounts

https://gerrit.wikimedia.org/r/773933

The patch above works fine for new VMs:

toolsbeta-test-k8s-worker-7    Ready    <none>                 32s    v1.21.8   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=toolsbeta-test-k8s-worker-7,kubernetes.io/os=linux,kubernetes.wmcloud.org/nfs-mounted=true,toolforge.org/nfs-mounted=true

I'm going to write a script to backfill the labels to existing ones.

taavi claimed this task.

Change 810446 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/toolforge/volume-admission-controller@main] Specify NFS node label selector

https://gerrit.wikimedia.org/r/810446

Change 810446 merged by jenkins-bot:

[cloud/toolforge/volume-admission-controller@main] Specify NFS node label selector

https://gerrit.wikimedia.org/r/810446