From e82cdaf3e57fb24bfb5e381949570c85ba06cb80 Mon Sep 17 00:00:00 2001 From: ericsyh Date: Thu, 20 Mar 2025 11:15:25 +0800 Subject: [PATCH] fix autoscaling with metrics server example Signed-off-by: ericsyh --- .../autoscaling-resource-metrics.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/sn-platform/autoscaling-resource-metrics.yaml b/examples/sn-platform/autoscaling-resource-metrics.yaml index 7bf2e1692..699f90dda 100644 --- a/examples/sn-platform/autoscaling-resource-metrics.yaml +++ b/examples/sn-platform/autoscaling-resource-metrics.yaml @@ -6,12 +6,12 @@ broker: # Deploy the https://github.com/kubernetes-sigs/metrics-server to support resource metrics. # Metrics server supports the cpu and memory PodMetrics. metrics: - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 70 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 70 bookkeeper: autoScaling: @@ -21,9 +21,9 @@ bookkeeper: # Deploy the https://github.com/kubernetes-sigs/metrics-server to support resource metrics. # Metrics server supports the cpu and memory PodMetrics. metrics: - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 70 \ No newline at end of file + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 70 \ No newline at end of file