Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove potential mem overcommitment #201

Closed
rdxmb opened this issue Sep 2, 2020 · 6 comments
Closed

remove potential mem overcommitment #201

rdxmb opened this issue Sep 2, 2020 · 6 comments

Comments

@rdxmb
Copy link

rdxmb commented Sep 2, 2020

When initializing the kubernetes-cluster with kubeadm, the resource-request and -limit for coredns differs. That can cause to mem overcommitment and oom-killed pods in the cluster.

In my case:

syslog:

[...]
[Mon Jul 13 04:07:15 2020] Memory cgroup out of memory: Kill process 48615 (mongod) score 1954 or sacrifice child
[...]
kubectl describe node drei
[...]
  kube-system                   coredns-66bff467f8-fcx9g               100m (5%)     0 (0%)      70Mi (0%)        170Mi (1%)       57d
[...]
  memory             16518324992 (98%)  16623182592 (99%)

My proposal is to set the limits to the same size as the requests.

@miekg
Copy link
Member

miekg commented Sep 2, 2020

this is the wrong repo for this request. And coredns org is probably also wrong.

@miekg miekg closed this as completed Sep 2, 2020
@rdxmb
Copy link
Author

rdxmb commented Sep 2, 2020

Oh, I am sorry. What would be the right repo for that? @miekg

@chrisohaver
Copy link
Member

What would be the right repo

It would be the repo for whatever tool you use to provision your cluster. More precisely, whatever tool defines the coredns Deployment.

@rdxmb
Copy link
Author

rdxmb commented Sep 2, 2020

More precisely, whatever tool defines the coredns Deployment.

Hm, not easy to say 🤔

It would be the repo for whatever tool you use to provision your cluster.

This is kubeadm init. I will see if I find the right repository for that ...

@chrisohaver
Copy link
Member

It's kubeadm, every k8s deployment tool decides independently how to configure the CoreDNS deployment.

kubeadm lives in https://github.com/kubernetes/kubernetes.

@rdxmb
Copy link
Author

rdxmb commented Sep 2, 2020

@chrisohaver thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants