尝试为 AWS SQS 部署外部指标监视器时出现错误。我正在尝试在 EKS 1.15 中部署它。目前它适用于我的 EKS 1.14 环境。
unable to recognize "app-deployment.yml": no matches for kind "ExternalMetric" in version "metrics.aws/v1alpha1"
这是我的 yaml 文件。我不确定我在哪里搞砸了,特别是因为它在另一个集群中工作,但版本不同。
apiVersion: metrics.aws/v1alpha1
kind: ExternalMetric
metadata:
name: app-offline-queue-length
namespace: myNamespace
spec:
name: app-offline-queue-length
resource:
resource: "deployment"
queries:
- id: sqs_realtime_length
metricStat:
metric:
namespace: "AWS/SQS"
metricName: "ApproximateNumberOfMessagesVisible"
dimensions:
- name: QueueName
value: "app-myname-offline"
period: 300
stat: Average
unit: Count
returnData: true
任何建议将不胜感激