Reputation: 321
I am trying to turn off logging and monitoring for a GKE autopilot cluster, and I get error:
gcloud beta container clusters update my-cluster --logging-service none --monitoring-service none
WARNING: The `--logging-service` flag is deprecated and will be removed in an upcoming release. Please use `--logging` instead. For more information, please read: https://cloud.google.com/stackdriver/docs/solutions/gke/installing.
WARNING: The `--monitoring-service` flag is deprecated and will be removed in an upcoming release. Please use `--monitoring` instead. For more information, please read: https://cloud.google.com/stackdriver/docs/solutions/gke/installing.
WARNING: Problem loading details of cluster to update:
ResponseError: code=404, message=Not found: projects/my-project/zones/us-central1-c/clusters/my-cluster.
Could not find [my-cluster] in [us-central1-c].
Did you mean [my-cluster] in [us-central1]?
You can still attempt updates to the cluster.
ERROR: (gcloud.beta.container.clusters.update) NOT_FOUND: Not found: projects/my-project/zones/us-central1-c/clusters/my-cluster.
How can I solve this?
Upvotes: 1
Views: 1088
Reputation: 21
Siegfred is right. There is no way you can turn cloud logging off for GCP Autopilot. GCP autopilot charges on its website is a big lie. Be ready to pay more than double of your estimated cost with autopilot manage service.
Cloud logging charges will be more than the charges of k8n autopilot cluster itself.
Upvotes: 2
Reputation: 1535
Based on the error message, the cluster is not found on the us-central1-c zone. You need to make the command on the correct region with --region flag
However, the --logging and --monitoring flags are not supported by Autopilot Clusters.
Autopilot clusters must have logging enabled as the GCP Engineering Team needs all debugging information to help with any issues and the nodes are managed by GCP.
Upvotes: 1