Skip to content

feat(chart): add PodDisruptionBudget for HA deployments #9

Description

@birdmanmandbir

Summary

Add PodDisruptionBudget to ensure operator availability during voluntary disruptions (node drains, upgrades).

Details

PDB only useful when replicaCount > 1. Should be conditionally rendered.

{{- if gt (int .Values.replicaCount) 1 }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: {{ include "cloudnative-supabase.fullname" . }}
spec:
  minAvailable: 1
  selector:
    matchLabels:
      {{- include "cloudnative-supabase.selectorLabels" . | nindent 6 }}
{{- end }}

When This Matters

  • Node drains during maintenance
  • Cluster upgrades
  • Autoscaler scale-downs

Without PDB, all replicas could be evicted simultaneously during multi-node drains.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:lowLow priority - nice to have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions