[zh] Fix selector expect map not string and sync horizontal-pod-autoscale-walkthrough.md file

This commit is contained in:
Mengjiao Liu
2021-08-09 18:07:38 +08:00
parent 91d71e812b
commit bbc82ea1f2
@@ -304,7 +304,7 @@ First, get the YAML of your HorizontalPodAutoscaler in the `autoscaling/v2beta2`
首先,将 HorizontalPodAutoscaler 的 YAML 文件改为 `autoscaling/v2beta2` 格式: 首先,将 HorizontalPodAutoscaler 的 YAML 文件改为 `autoscaling/v2beta2` 格式:
```shell ```shell
kubectl get hpa.v2beta2.autoscaling -o yaml > /tmp/hpa-v2.yaml kubectl get hpa php-apache -o yaml > /tmp/hpa-v2.yaml
``` ```
<!-- <!--
@@ -597,7 +597,9 @@ HorizontalPodAutoscaler 的配置中。
external: external:
metric: metric:
name: queue_messages_ready name: queue_messages_ready
selector: "queue=worker_tasks" selector:
matchLabels:
queue: "worker_tasks"
target: target:
type: AverageValue type: AverageValue
averageValue: 30 averageValue: 30