QuestionQ153

Building and testing applications

You have an application running in a production Google Kubernetes Engine (GKE) cluster. You use Cloud Deploy to automatically deploy the application to your production GKE cluster. As part of your development process, you plan to make frequent changes to the application's source code and must choose tools to test those changes before pushing them to your remote source code repository. Your toolset must meet these requirements:

  • Automatically test frequent local changes.
  • Local deployment emulates the production deployment.

Which tools should you use to test building and running a container on your laptop while using minimal resources?

  • A Docker Compose and dockerd
  • B Terraform and kubeadm
  • C Minikube and Skaffold
  • D kaniko and Tekton
Explanation

Minikube provides a lightweight local Kubernetes cluster, enabling local deployments that follow the Kubernetes deployment model used by GKE. Skaffold runs a continuous development loop: in dev mode it watches source changes, rebuilds images, retests, and redeploys to a local Minikube cluster. Skaffold is also the tool Cloud Deploy uses for rendering and deployment operations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!