QuestionQ40

VerifiedApplying site reliability engineering practices

You have an application running in Google Kubernetes Engine (GKE). It consists of several microservices deployed to GKE by using Deployments and Services. One microservice has an issue in which a Pod begins returning 403 errors after it has run for more than five hours. Your development team is working on a solution, but the issue will not be fixed for a month.

You need to maintain continued operations until the microservice is fixed. You want to follow Google-recommended practices and use the fewest steps. What should you do?

Explanation

An HTTP liveness probe continually checks whether the container is healthy. HTTP responses from 200 through 399 are successful probe results, so a 403 response fails the probe. After the configured failure threshold, the kubelet restarts the unhealthy container; the Deployment then preserves the intended running workload without manual Pod termination or alert-driven remediation.

Learn more

Community Discussion

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