From 1e057958dc2be59a5088b93aff2b2fb05862a970 Mon Sep 17 00:00:00 2001 From: Victor Barba Martin Date: Thu, 18 Nov 2021 00:40:15 +0100 Subject: [PATCH] add autoscaler --- k8s/coturn/templates/hpa.yml | 12 ++++++++++++ k8s/webrtc-be/templates/hpa.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 k8s/coturn/templates/hpa.yml create mode 100644 k8s/webrtc-be/templates/hpa.yml diff --git a/k8s/coturn/templates/hpa.yml b/k8s/coturn/templates/hpa.yml new file mode 100644 index 0000000..51b8828 --- /dev/null +++ b/k8s/coturn/templates/hpa.yml @@ -0,0 +1,12 @@ +apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: coturn +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: coturn + minReplicas: 1 + maxReplicas: 10 + targetCPUUtilizationPercentage: 50 \ No newline at end of file diff --git a/k8s/webrtc-be/templates/hpa.yml b/k8s/webrtc-be/templates/hpa.yml new file mode 100644 index 0000000..4e63360 --- /dev/null +++ b/k8s/webrtc-be/templates/hpa.yml @@ -0,0 +1,12 @@ +apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: webrtc-be +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: webrtc-be + minReplicas: 1 + maxReplicas: 10 + targetCPUUtilizationPercentage: 50 \ No newline at end of file