<p>Now, I use Argo CD to deploy in AWS EKS.
Usually, when the pods is in the Running state, the existing pods is terminated.</p>
<p>But I want to shut down the pods after <strong>the application of the pod runs perfectly</strong>,</p>
<p>Is there any way?</p>

Junseok Lee
<p>Im not sure what configuration are you using with ArgoCD for your CI/CD process. But it is recommended to use readiness and liveness probs <a href="https://thenewstack.io/kubernetes-health-checks-using-probes/#:%7E:text=To%20check%20the%20status%20of,ready%20to%20accept%20user%20traffic." rel="nofollow noreferrer">link</a> to determine the lifecycle of the pod.</p>
<p>For example, Kubernetes uses the readiness prob to allow actual traffic from the service to be directed to the pod when running rollingUpdates</p>
<p>Potentially when using vanilla Kubernetes deployment with the readiness and liveness probs. A pod would terminate only when another pod is actually ready to accept traffic. i.e its readiness and liveness probs passed the relevant threshold.</p>
<p>ArgoCD has their own <a href="https://www.patrickdap.com/post/argocd-health-checks/" rel="nofollow noreferrer">alternatives</a> and health checks which you can customize</p>
