Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
What´s the correct way to stop pod in kubernetes

I'm having problems with my Kubernetes cluster. I have a service with a deployment associated. I have several replicas of the pods in this deployment up and running and 2 containers for each deployment.

I'm using a Rolling Updatestrategy for redeploying, with parameters maxSurge : 1 and maxUnavailable: 0. When I change a deployment the pods are changing correctly, adding one new pod and then deleting an old one until the whole deployment is changed.

However, on the switch of the first pod from old to new, I'm having a small outage. This doesn't happend when I'm changing the other pods, that is, when there is at least one new pod up and running.

What can I do to fix this issue? I have a livenessProbe and a readinessProbe but still it looks like the new pod is not ready to receive traffic when it just starts, although the readinessProbe works correctly. I've read that in some applications the pod doesn't close with a SIGTERM as Kubernetes expects and therefore the pod is abruptly killed. I'm wondering if this is the problem but can't be sure. What would be the correct way to handle this in the preStop? Is there something that I could be missing?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda