【发布时间】:2021-12-28 22:24:10
【问题描述】:
Autopilot overview 文档声称处于 Autopilot 模式的 Google Cloud Kubernetes Engine (GKE) 集群支持监控预配置:系统监控但可选:系统和工作负载监控.
我想在 Autopilot 集群上使用上述工作负载监控,使用 apiVersion: monitoring.gke.io/v1alpha1 和 kind: PodMonitor CRD,as documented here。
但是,the UI says “云监控无法在 Autopilot 集群中进行编辑。” 和 gcloud container clusters update my-cluster --monitoring=WORKLOAD 表示 ERROR: (gcloud.container.clusters.update) Must include system monitoring if any monitoring is enabled. 但与 --monitoring=SYSTEM,WORKLOAD 相同表示 ERROR: (gcloud.container.clusters.update) INVALID_ARGUMENT: Request contains an invalid argument.
您如何在 Autopilot 集群中使用工作负载监控?
【问题讨论】:
标签: google-kubernetes-engine google-cloud-monitoring