cloudbuild.yaml to build, push, and deploy the Docker image to a GKE cluster via gke.yaml, we can automate the entire CI/CD workflow with a Cloud Build trigger. Once this file is committed to GitHub, the pipeline performs the following steps:
Commit, Push, and Open a Pull Request
Use the following commands to stage, commit, and push your changes:

Monitoring the Build in Google Cloud Console
Once merged intomain, the configured Cloud Build trigger executes our pipeline. Monitor progress under Cloud Build → History:

The deployment step failed because the specified GKE cluster name does not exist. Always verify that
--cluster matches your actual cluster in the correct zone or region.
Verifying Your GKE Clusters
Check your actual cluster names and locations in the Kubernetes Engine section:
If you need to list clusters via the CLI, use:
Correcting the Cluster Reference
Update thecloudbuild.yaml to use the correct cluster name: