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

241
Visualizações
AWS EKS + Fargate bug after multiple OOMKill restart

TL;DR

I'm having trouble with an AWS EKS cluster running application pods on top of Fargate serverless nodes.

Here the steps to reproduce it:

  • Create an EKS cluster
  • Create a fargate profile for default namespace
  • Run two pods in default namespace
  • Make the second pod ping the first one, and leave it there
  • In the first pod, use all available memory
    • It’s easier when you have python installed: python3 -c "bytearray(512000000)"
    • K8s will OOMKill it, and it should be restarted automatically
  • Repeat steps above until you see the ping in the second pod stop working

Here's the pod manifest I'm using, but it can be any pod:

apiVersion: v1
kind: Pod
metadata:
  name: root-shell
spec:
  containers:
  - command: ["sh", "-c"]
    args:
    - sleep infinity
    image: docker.io/library/alpine
    # Make two files and pick a different name for the second pod
    name: root-shell
    resources:
      limits:
        memory: 64Mi
        cpu: 50m

Long description

My issue popped up this week when one of the pods lost network settings completely. After some debugging I figured that the pod was using more memory than it had been assigned to. This caused k8s to OOMKill it and restart the pod. After two or three restarts, the pod lost networking settings. nslookup or other requests to the outside didn't work, while all other pods in the cluster worked just fine. I noticed that pinging to the Fargate node also stopped working, so I'm assuming there might be something going on wrong with pod restart in the same fargate node. If I manually delete the pod, k8s will re-schedule a new pod on a new Fargate node where things work as they are supposed.

any hints are welcome!

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I don't have an answer (off the top of my head) for the restart issue (I will look into it and try to recreate the problem). However I wanted to point out that we read the "requests" to size the pod and not the "limits". See here.

over 4 years ago · Santiago Trujillo Relatório
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