From 0d16d024d6f22eaab83e87b6d5c1a6b859a7bf30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ara=C3=BAjo?= <davidaraujo@av.it.pt> Date: Fri, 5 Jul 2024 00:15:35 +0100 Subject: [PATCH] HPA in device and monitoring disabled --- manifests/deviceservice.yaml | 52 ++++++++++++++++---------------- manifests/monitoringservice.yaml | 52 ++++++++++++++++---------------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml index bf599d0b4..bd7c1bf1e 100644 --- a/manifests/deviceservice.yaml +++ b/manifests/deviceservice.yaml @@ -70,30 +70,30 @@ spec: selector: app: deviceservice ports: - - name: grpc - protocol: TCP - port: 2020 - targetPort: 2020 - - name: metrics - protocol: TCP - port: 9192 - targetPort: 9192 + - name: grpc + protocol: TCP + port: 2020 + targetPort: 2020 + - name: metrics + protocol: TCP + port: 9192 + targetPort: 9192 --- -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: deviceservice-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: deviceservice - minReplicas: 1 - maxReplicas: 10 - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 80 +# apiVersion: autoscaling/v2 +# kind: HorizontalPodAutoscaler +# metadata: +# name: deviceservice-hpa +# spec: +# scaleTargetRef: +# apiVersion: apps/v1 +# kind: Deployment +# name: deviceservice +# minReplicas: 1 +# maxReplicas: 10 +# metrics: +# - type: Resource +# resource: +# name: cpu +# target: +# type: Utilization +# averageUtilization: 80 diff --git a/manifests/monitoringservice.yaml b/manifests/monitoringservice.yaml index 4058436e5..a37073b2f 100644 --- a/manifests/monitoringservice.yaml +++ b/manifests/monitoringservice.yaml @@ -65,30 +65,30 @@ spec: selector: app: monitoringservice ports: - - name: grpc - protocol: TCP - port: 7070 - targetPort: 7070 - - name: metrics - protocol: TCP - port: 9192 - targetPort: 9192 + - name: grpc + protocol: TCP + port: 7070 + targetPort: 7070 + - name: metrics + protocol: TCP + port: 9192 + targetPort: 9192 --- -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: monitoringservice-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: monitoringservice - minReplicas: 1 - maxReplicas: 10 - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 80 +# apiVersion: autoscaling/v2 +# kind: HorizontalPodAutoscaler +# metadata: +# name: monitoringservice-hpa +# spec: +# scaleTargetRef: +# apiVersion: apps/v1 +# kind: Deployment +# name: monitoringservice +# minReplicas: 1 +# maxReplicas: 10 +# metrics: +# - type: Resource +# resource: +# name: cpu +# target: +# type: Utilization +# averageUtilization: 80 -- GitLab