From f7d1694da9f9edc80adef5d357eafedf394c6b03 Mon Sep 17 00:00:00 2001 From: Sam Darwin Date: Mon, 19 May 2025 07:42:26 -0600 Subject: [PATCH] HPA - horizontal pod autoscaler (#1787) --- kube/boost/templates/hpa.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kube/boost/templates/hpa.yaml diff --git a/kube/boost/templates/hpa.yaml b/kube/boost/templates/hpa.yaml new file mode 100644 index 00000000..f75f476c --- /dev/null +++ b/kube/boost/templates/hpa.yaml @@ -0,0 +1,18 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: boost +spec: + minReplicas: 2 + maxReplicas: 8 + metrics: + - resource: + name: cpu + target: + averageUtilization: 50 + type: Utilization + type: Resource + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: boost