QuestionQ58

VerifiedBuilding and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are setting up a Cloud Deploy pipeline to deploy an application to Google Kubernetes Engine (GKE). The application is deployed as a Deployment. You must configure the Deployment to use two replicas in the development environment and five replicas in the production environment. All other configuration parameters must remain consistent across environments. You must also minimize development overhead when updating manifests in the future. How should you configure the skaffold.yaml file?

Explanation

Cloud Deploy uses separate Skaffold profiles to render target-specific manifests. Kustomize enables a shared base Deployment and environment-specific overlays that patch only the replica count, preserving every other configuration setting and avoiding duplicated manifests.

Learn more

Community Discussion

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