By renanShark
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)
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.