bf2fc6cc711aee1a0c2a / kas-fleetshard

The kas-fleetshard-operator is responsible for provisioning and managing instances of kafka on a cluster. The kas-fleetshard-synchronizer synchronizes the state of a fleet shard with the kas-fleet-manager.
Apache License 2.0
7 stars 20 forks source link

MGDSTRM-8370 adding affinity when there are multiple profiles #724

Closed shawkins closed 2 years ago

shawkins commented 2 years ago

This adds Profiles to the ManagedKafkaAgent. For now they are empty, but it's expected that with capacity reporting that they will at least contain the max nodes. Here we're using the presence of both developer and standard to trigger adding nodeaffinity (effectively a nodeselector) to all the pods.

There may eventually be a map of profiles, rather than just well known names, but for now we are effectively building our solution around having exactly these named types.

This may also need to be generalized further to adding a toleration.

shawkins commented 2 years ago

The second commit adds support for tolerations. These will always be added as long as there is a profile set. Now that we have moved away from eval instances at some point we could go back and make the profile required.