创建集群后启用 stackdriver 监控
Enable stackdriver monitoring after cluster creation
创建时间后似乎无法在集群上启用 Stackdriver 监控。有谁知道将来是否计划在事后启用它?
即将上线,宁愿不必破坏集群来重新创建它(主要是因为设置 LB 路由相当痛苦)。
It doesn't appear to be possible to enable Stackdriver monitoring on a
cluster after creation time.
目前是这样。配置监控(启用/禁用)需要重新创建节点,因为用于打开它的机制 on/off(节点上的静态 pods)。由于该操作非常具有破坏性,因此无法动态更改。
使用 DaemonSets,现在可以解决技术限制,因此您可以期待 GKE 将来使这成为可能。不幸的是,我不能给出任何具体的时间表。
此页面表示您可以在已创建的集群上启用监控:
https://cloud.google.com/sdk/gcloud/reference/alpha/container/clusters/update
Monitoring is enabled by default for clusters created from the
Developers Console and the gcloud command-line tool, but you can
verify by running the following command or clicking into the cluster's
details in the Developers Console:
gcloud container clusters describe cluster-name
The output from the
gcloud command-line tool should state that the "monitoringService" is
"monitoring.googleapis.com", and Cloud Monitoring should be enabled in
the Developers console.
If monitorng is not enabled, run the following command to enable it:
gcloud alpha container clusters update cluster-name --monitoring-service=monitoring.googleapis.com
创建时间后似乎无法在集群上启用 Stackdriver 监控。有谁知道将来是否计划在事后启用它?
即将上线,宁愿不必破坏集群来重新创建它(主要是因为设置 LB 路由相当痛苦)。
It doesn't appear to be possible to enable Stackdriver monitoring on a cluster after creation time.
目前是这样。配置监控(启用/禁用)需要重新创建节点,因为用于打开它的机制 on/off(节点上的静态 pods)。由于该操作非常具有破坏性,因此无法动态更改。
使用 DaemonSets,现在可以解决技术限制,因此您可以期待 GKE 将来使这成为可能。不幸的是,我不能给出任何具体的时间表。
此页面表示您可以在已创建的集群上启用监控: https://cloud.google.com/sdk/gcloud/reference/alpha/container/clusters/update
Monitoring is enabled by default for clusters created from the Developers Console and the gcloud command-line tool, but you can verify by running the following command or clicking into the cluster's details in the Developers Console:
gcloud container clusters describe cluster-name
The output from the gcloud command-line tool should state that the "monitoringService" is "monitoring.googleapis.com", and Cloud Monitoring should be enabled in the Developers console.
If monitorng is not enabled, run the following command to enable it:
gcloud alpha container clusters update cluster-name --monitoring-service=monitoring.googleapis.com