kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
58 stars 19 forks source link

Pod Disruption Budget for slice gateway pods #308

Closed bharath-avesha closed 3 months ago

bharath-avesha commented 9 months ago

🔖 Feature description

Create and reconcile PodDisruptionBudget for slice gateway pods.

🎤 Pitch

We need this enhancement to avoid connectivity loss between clusters of a slice during disruptions. Atleast one pair of slice gateway pods should be present between a pair of clusters.

✌️ Solution

We should create PodDisruptionBudget objects for the slice gateway pods, and reconcile them periodically.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

Bhargav-InfraCloud commented 4 months ago

Hi, I want to give it a try, Can you please assign this to me? /assign

narmidm commented 4 months ago

sure @Bhargav-InfraCloud, please let us know if you require any help.

Bhargav-InfraCloud commented 4 months ago

Approach from a High-level

The reconciler should watch for SliceGateway objects if:

@narmidm @bharath-avesha If that looks reasonable, I need your opinion on the following.

  1. Add the PDB logic in SliceGwReconciler that exists.
  2. Create a new reconciler for creating PDB alone.

I don't think there is a great advantage to choosing one over the other. WDYT?

narmidm commented 4 months ago

A better option would be to use the existing SliceGwReconciler, as creating a new one could be inefficient or an overhead. You just need to ensure that it is a Requeued reconciliation and update it only when required for better efficiency. cc: @bharath-avesha