Score:0

Kubernetes pod terminated but container still occupying memory for a few minutes

sg flag
jze

I have several pods running an app and when redeploying (maxSurge=1,maxUnavailable=1) all pods are very quickly replaced but then I see a memory spike in the cluster showing double the memory used for 3-4 minutes (garbage collection delay???).

Is there a way to tell Kubernetes to clean up terminated pod's resources before creating another one?

Score:0
nl flag

If you are a using a deployment object and you want to avoid rolling update, you need to use this in the spec section

spec:
  replicas: 3
  strategy:
    type: Recreate
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.