Report this

What is the reason for this report?

When I am creating a container if I don't specify any cpu or memory resources is there a default setting that DO sets of those containers?

Posted on January 27, 2020

When I am creating a container if I don’t specify any cpu or memory resources is there a default setting that DO sets of those containers? Im fairly new to k8s so im not sure how to look this up with kubectl.

Thank,

Chris



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The default, I don’t know, but I can tell you this:

If you want to find out the resource limit / request then you can see the value by describing the deployment / pod, for example: kubectl describe deployment ping or kubectl describe pod ping. You will see something like this:

spec:
  containers:
    resources:
      limits:
        cpu: 300m
        memory: 128Mi

You can read more about resource limiting on kubernetes.io

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.