1
votes

I have a kubernetes application using AWS EKS. With the below details:

Cluster: + Kubernetes version: 1.15 + Platform version: eks.1

Node Groups: + Instance Type: t3.medium + 2(Minimum) - 2(Maximum) - 2(Desired) configuration

[Pods] + 2 active pods

[Service] + Configured Type: ClusterIP + metadata.name: k8s-eks-api-service

[rbac-role.yaml] https://pastebin.com/Ksapy7vK

[alb-ingress-controller.yaml] https://pastebin.com/95CwMtg0

[ingress.yaml] https://pastebin.com/S3gbEzez

When I tried to pull the ingress details. Below are the values (NO ADDRESS)
Host: *
ADDRESS: 

My goal is to know why the address has no value. I expect to have private or public address to be used by other service on my application.

3

3 Answers

0
votes

In order for your kubernetes cluster to be able to get an address you will need to be able to manage route53 from withtin the cluster, for this task I would recommend to use externalDns.

In a broader sense, ExternalDNS allows you to control DNS records dynamically via Kubernetes resources in a DNS provider-agnostic way.

source: ExternalDNS

0
votes

To use Ingress in AWS EKS, you need to deploy a pod of LoadBalancerController. This pod tracks the ingress creation and once an ingress is created, it creates a matching AWS LoadBalancer, which actually handles routing of the incoming traffic directly to the relevant pods.

Also, make sure to include the following annotations in the ingress:

 kubernetes.io/ingress.class: alb
 alb.ingress.kubernetes.io/scheme: internet-facing
 alb.ingress.kubernetes.io/target-type: ip

See more details in: https://runkiss.blogspot.com/2021/03/using-ingress-in-aws-eks.html

0
votes

This happened with me too that after all the setup, I was not able to see the ingress address. The best way to debug this issue is to check the logs for the ingress controller. You can do this by:

  1. Get the Ingress controller po name by using: kubectl get po -n kube-system
  2. Check logs for the po using: kubectl logs <po_name> -n kube-system

This will point you to the exact issue as to why you are not seeing the address.