Skip to main content
In this guide, you’ll learn how to confirm that your containerized application is running correctly on Google Kubernetes Engine (GKE). We cover both the Google Cloud Console and the kubectl command-line interface.

1. Verifying via the GCP Console

  1. Navigate to Kubernetes Engine > Clusters in the Google Cloud Console.
  2. Select your cluster (for example, gcp-devops-project).
  3. In the cluster overview, click Workloads in the left menu to see all Deployments.
  4. Choose the correct namespace (e.g., gcp-devops-prod). You’ll see your Deployment, the number of ready pods, and its status.
  5. Click the Deployment name for detailed metrics on CPU, memory, and more.
The image shows a Google Cloud Platform Kubernetes Engine dashboard displaying deployment details, including CPU, memory, and disk usage metrics. It also includes options for configuration and documentation links on the right side.
Avoid editing your Deployment manifest directly in the Console. Since changes aren’t tracked in your GitHub-backed CI/CD pipeline, this can lead to configuration drift.

Editing via the Console

When you click Edit, you’ll see a client-side apply patch like this:
The image shows a Google Cloud Platform interface for editing a Kubernetes Engine deployment, displaying YAML configuration details.

Viewing Logs, Revisions, and Observability

  • Logs: Monitor container output filtered by severity or time.
  • Revision History: Track Deployment rollouts and rollbacks.
  • Observability: Access extended metrics, charts, and health checks.
The image shows a Google Cloud Platform Kubernetes Engine dashboard displaying deployment details and observability metrics for a project named "gcp-devops-gke." It includes sections for CPU and memory usage, container restarts, and documentation links.

Exposure & Actions

Because no Service resource exists yet, the Exposure section will be empty.
We recommend using your CI/CD pipeline for all changes to ensure auditability.

2. Verifying via the Command Line

a. Configure kubectl Credentials

Open Cloud Shell (or your local terminal) and run:
This command retrieves cluster credentials and configures kubectl to use your GKE context.

b. Check Pods in the Default Namespace

By default, kubectl queries the default namespace:
Most GKE applications run in a custom namespace, so the default namespace is often empty.

c. Check Pods in Your Namespace

List all pods in gcp-devops-prod:
Example output:
From here, you can dig deeper:

Next Steps

Once your Deployment is validated:
  • Create a Service to expose your application externally.
  • Configure Ingress rules for HTTP routing and TLS termination.
  • Integrate monitoring and alerts with Cloud Monitoring and Cloud Logging.

Watch Video