Report this

What is the reason for this report?

Internal Ingress

Posted on October 8, 2020

Is there a way to make a Kubenetes Ingress only to accept internal requests instead of accepting external and internal requests?

I know I can setup a internal LoadBalancer but I get no benefits of subdomains that I need.

Following the following tutorial I can have a subdomain but my LoadBalancer would accept external requests https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes#step-5-—-enabling-pod-communication-through-the-load-balancer-(optional)

  1. Ideally I would setup a internal-only ingress, is that possible?
  2. Is there a way to set a domain+subdomain to a Service(type=loadbalancer) without making it available to the public?


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.

I believe you don’t need an ingress at all for what you’re trying to do. From inside your cluster, you should be able to reference your service by it’s name directly.

So if you have a service called “my-data-api-service”, other apps in your cluster should be able to directly access it at “http://my-data-api-service/api/v1…” for example.

Does that help?

Hey!

Quick update here!

In addition to what has already been disucssed here in regards to using services, if you need to now, you can also create internal-only regional load balancers.

Internal load balancers have no public IP address and are only accessible by resources in the same VPC.

This feature is currently in early availability and only available through the CLI and API.

- Bobby

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.