From 93dd20f830b95395850d704bb41c4e9801804e1a Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 29 Apr 2026 09:55:46 -0500 Subject: [PATCH] ops(prop): pin HPA to 1 replica MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set minReplicas == maxReplicas == 1 on the `prop` HPA so the cluster runs exactly one app pod. HPA still owns the replica count (Flux ignores spec.replicas on the Deployment), so this is the right knob — no need to touch deployment.yaml. Restore autoscaling by raising both bounds together. --- k8s/hpa.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/k8s/hpa.yaml b/k8s/hpa.yaml index 731d60c7..da229d7e 100644 --- a/k8s/hpa.yaml +++ b/k8s/hpa.yaml @@ -22,8 +22,11 @@ spec: apiVersion: apps/v1 kind: Deployment name: prop - minReplicas: 2 - maxReplicas: 5 + # Pinned at 1 pod (min == max). HPA still owns the replica count so + # Flux reconcile stays out of the way; raise both bounds together to + # restore autoscaling. + minReplicas: 1 + maxReplicas: 1 metrics: - type: Resource resource: