Merge pull request #29296 from mengjiao-liu/fix-Selector-yaml

[zh] Fix `selector` expect map not string
pull/29304/head
Kubernetes Prow Robot 2021-08-09 06:57:31 -07:00 committed by GitHub
commit 34ab657265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -304,7 +304,7 @@ First, get the YAML of your HorizontalPodAutoscaler in the `autoscaling/v2beta2`
首先,将 HorizontalPodAutoscaler 的 YAML 文件改为 `autoscaling/v2beta2` 格式:
```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:
metric:
name: queue_messages_ready
selector: "queue=worker_tasks"
selector:
matchLabels:
queue: "worker_tasks"
target:
type: AverageValue
averageValue: 30