In GCP Console -
- Open the GCP Portal and Go to the Google Kubernetes Engine (GKE).
- Select the cluster you want to edit.
- Click details,Under Security in Basic authentication click on edit Basic authentication.
- Select the Enable basic authentication checkbox.
- Click Save Changes.
In Terraform -
Deprecated in the latest version of the provider.
- In the google_container_cluster resource, ensure that master_auth block attribute has master_auth.username attribute and master_auth.password attribute are not set.
References:
https://registry.terraform.io/providers/hashicorp/google/3.78.0/docs/resources/container_cluster