5 Commits

Author SHA1 Message Date
iQQBot
52a7727b4f
[node-labeler] Refactor node labeling to use taints instead of labels (#20652)
* [node-labeler] Refactor node labeling to use taints instead of labels

* [agent-smith] Add toleration to daemonset

* Add workspace component tolerations to various Gitpod components if it running in Full installation

* Apply suggestions from code review

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

* Update components/node-labeler/cmd/run.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2025-03-11 03:30:39 -04:00
Filip Troníček
4d3cca4209
[node-labeler] Introduce workspace count controller (#20509)
* [ws-daemon] Introduce pod count controller

* remove unnecessary variable

* move to `node-labeler`

* act on ws crds

* Fix runtime not filled in yet

* Make tests pass!

* Improve test file structure

* Fix `node-labeler:lib` build

* Remove unnecessary changes

* Address some review comments (thanks, kyle!)

* Try caching?

* Queue deleted nodes and periodically reconcile it all

* WCC cleanup function

* Fix tests

* Update name

* Add metrics for controller

* Add synchronization for node reconciliation to prevent race conditions

* Address review comments

* Remove superflous log

* Remove unneeded metrics and add cool log line

* big yellow warning for a thing that should not happen
2025-01-21 18:12:11 -05:00
Manuel Alejandro de Brito Fontes
f27b16ee31
Add support for pod disruption budget (#18547) 2023-08-25 22:06:51 +02:00
Manuel Alejandro de Brito Fontes
97f8d4b802
Ensure the spread of pods on different nodes (#16810)
* Ensure the spread of pods on different nodes

* Replace string ClusterFirst

* Replace Always string in DNSPolicy

* Fix registry-facade affinity

* Fix ws-proxy affinity

* Address feedback

* Update golden files
2023-03-15 10:21:07 +01:00
Manuel Alejandro de Brito Fontes
218f64f7c1
Replace node labeler component with a dedicated deployment (#16712)
* Replace node labeler component with a dedicated deployment

* Update go modules

* Fix invalid module name

* Fix modules
2023-03-09 23:38:45 +01:00