[Availability] Increase replicas and add PodAffinity defn#151
Open
siddimore wants to merge 1 commit intolivekit:masterfrom
Open
[Availability] Increase replicas and add PodAffinity defn#151siddimore wants to merge 1 commit intolivekit:masterfrom
siddimore wants to merge 1 commit intolivekit:masterfrom
Conversation
…LiveKitServer and increase replicaCount to 2 (this helps with availability) and update replicaCount for egress/ingress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description:
Default replicaCount: 1 means a single pod failure takes out the entire service. This bumps the default to 2 replicas across livekit-server, egress, and ingress, and adds soft pod anti-affinity rules to spread them across nodes.
Changes
Why soft anti-affinity?
Using preferred instead of required so clusters with fewer nodes than replicas still work — the scheduler will try to spread but won't block pods from starting. For livekit-server and ingress (which use host networking), port conflicts already physically prevent two pods on the same node, but the anti-affinity makes the intent explicit.
Notes
Fully backwards compatible — users can override affinity and replicaCount as before.