Selector expect map not string
If we using string then k8s api is throwing validation error ``` (HorizontalPodAutoscaler.spec.metrics[0].object.metric.selector): invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false ```
This commit is contained in:
parent
708cc9a5fe
commit
2eda36ea27
|
@ -397,7 +397,9 @@ section to your HorizontalPodAutoscaler manifest to specify that you need one wo
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue