Your administrator needs to enable the AWS Application Load Balancer controller for your infrastructure before you can use Ingress.
In the DuploCloud Portal, navigate to Administrator > Infrastructure > Infrastructure_name > Settings.
Click Add. The Infra - Custom Data pane displays.
From the Setting Name list box, select Enable ALB Ingress Controller.
Click Set. In the Settings tab, the Enable ALB Ingress Controller setting displays a Value of true.
Settings tab on the Infrastructure page
Adding a Load Balancer with Kubernetes NodePort
Add a load balancer listener that uses Kubernetes (K8s) NodePort. Kubernetes Health Check and Probes are enabled by default. To specifically configure the settings for Health Check, select Additional Health Check configs when you add the Load Balancer.
In the DuploCloud Portal, navigate DevOps -> Containers -> EKS/Native.
On the Services page, select the Service name in the Name column.
From the Visibility list box, select either Internal Only or Public.
From the Certificate ARN list box, select the appropriate ARN.
Click Add to add the Kubernetes Ingress with defined rules. The Ingress you added displays in the K8S Ingress tab.
K8S Ingress tab displaying added Ingress
DuploCloud Platform supports defining multiple paths in Ingress. We defined an Ingress rule with an Exact Path Type to route requests to /path1/for js-service1.To continue this example, we added a rule with a Prefix Path Type to route requests to /path2/ for testsvc2. Additionally, weadded a rule with a Prefix Path Type to route requests via a BYOH Host (Bring-Your-Own-Host) named example.com, for a third service, testsvc3.
Multiple paths defined for an Ingress in the DuploCloud Portal
When Ingress is configured, you can access Services based on the rules for each DNS, displayed in the K8S Ingress tab.
In this example, we display the output for three services with Path Type rules and different DNS names. See the previous example for detailed steps to create Ingress rules.
K8s Ingress Tab with multiple Ingresses for specific DNS names.
By executing curl commands, you can see the difference in the output for each service in this example. Configured services are accessed based on the DNS name specified in the DuploCloud Portal and the paths that you specified when you added Ingress rules.
this is service1
this is service2