Question

Kubernetes nginx ingress controller setup

Hey. Just started learning Kubernetes with a starter cluster with 1 vCPUs (12$/m option).

I’m trying to get my own project running on the k8s cluster with this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-on-digitalocean-kubernetes-using-helm

The nginx-ingress controller installed with helm should just be one command. But the status of the pod stays on “Pending” and when I describe the pod it says: 0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.

Also somewhere in the describe: Requests: cpu: 100m memory: 90Mi Liveness: http-get http://:10254/healthz delay=10s timeout=1s period=10s #success=1 #failure=5 Readiness: http-get http://:10254/healthz delay=10s timeout=1s period=10s #success=1 #failure=3

Although I started with the cheapest kubernetes solution, it still should be enough I’d think.

Could someone help me or push me in a direction?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Apparently you need 2 nodes.

I can confirm that before the DO upgrade, 1 node was sufficient. Now only when upgrading to 2 nodes, it started working again.

Any idea why this is the case? I asked GPT and it says that this has to do with resource availability. Some control plane ops happen on the workers and if there’s not enough resources the ingress remains pending. I don’t know about that. I use a 4GB worker.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.