Category: GCP
-
查看 gke 维护和即将维护情况
查看集群维护情况 (已发生) gcloud container operations list –project main-prod-e0f3382 –region asia-east2 维护通知 (未发生) https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-upgrade-notifications
-
gcp stackdriver
gcp stackdriver https://cloud.google.com/logging/docs/routing/overview Can’t delete the _Default bucket. filter cheet sheet You can’t using > < to compare value in string, even they are numbers, using regex instead. ``` jsonPayload.duration=~".*[0-9][0-9][0-9][0-9]" ```
-
gsutil
gsutil versioning get gs://xxx-infra gs://xxx-infra: Suspended 如果没开启,打开 versioning,Enabling Object Versioning increases storage costs gsutil versioning set on gs://xxx-infra gsutil versioning get gs://xxx-infra gs://xxx-infra: : Enabled 查看所有版本的所有文件 gsutil ls -a gs://xxx-infra 恢复某一个版本的文件 gsutil cp gs://xxx-infra/subnet_list.json#1607987168023139 gs://xxx-infra/subnet_list.json
-
gcloud 使用记录
安装 sdk curl https://sdk.cloud.google.com | bash 查看当前授权 gcloud auth list 列出用过的 projects gcloud projects list To revert your CLI to the previously installed version, you may run: $ gcloud components update –version 403.0.0