Kubernetes 字段筛选器在(我的订阅)的一个\u中具有无效值…非法函数调用;其中一个_至少需要2个参数,但得到1个

Kubernetes 字段筛选器在(我的订阅)的一个\u中具有无效值…非法函数调用;其中一个_至少需要2个参数,但得到1个,kubernetes,google-cloud-platform,Kubernetes,Google Cloud Platform,我有以下自动缩放配置: apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: pubsub spec: minReplicas: 1 maxReplicas: 5 metrics: - external: metricName: pubsub.googleapis.com|subscription|num_undelivered_messages me

我有以下自动缩放配置:

apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: pubsub
spec:
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - external:
      metricName: pubsub.googleapis.com|subscription|num_undelivered_messages
      metricSelector:
        matchLabels:
          resource.labels.subscription_id: my-subscription-name
      targetAverageValue: "2"
    type: External
启动应用程序时,我会看到以下日志事件:

unable to get external metric my-namespace/pubsub.googleapis.com|subscription|num_undelivered_messages/&LabelSelector{MatchLabels:map[string]string{},MatchExpressions:[{resource.labels.subscription_id In [my-subscription]}],}: unable to fetch metrics from external metrics API: googleapi: Error 400: Field filter had an invalid value of "metric.type = "pubsub.googleapis.com/subscription/num_undelivered_messages" AND resource.labels.subscription_id = one_of("my-subscription")": Illegal function invocation in one_of(my-subscription); expected at least 2 arguments to one_of but got 1, badRequest
有什么不对劲吗?这有多正确

附言。
它在两天前工作了

在我添加了
资源后,它开始工作了。键入

 metricSelector:
          matchLabels:
            resource.labels.subscription_id: my-subscription-name
            resource.type: pubsub_subscription

看起来GCP方面发生了一些变化

您使用的外部指标导出器是什么?您能否提供有关您的环境的更多信息?外部负载平衡的resource.type应该是什么