Skip to content

Ingress and DNS

Prerequisites

Hint

For example, if you want to use the domain foo.com, and assign different subdomains such as app1.foo.com and app2.foo.com to your Applications, create a DNS record foo.com that points to your Load Balancer IP/CNAME.

If you want to use DNS’ with different hosts, such as foo.com and bar.net, both DNS records must be created to point towards the LoadBalancer.

Exposing your Application to the Internet

  1. Navigate to the Ingress tab in Application Overview and click + CREATE. This will open the Ingress setup wizard.

  2. Add the Host Names. You can assign multiple host names to your application as long as all the DNS records are set up to point to your Ingress Controller’s Load balancer.

  3. Click CONTINUE to proceed to the Service Mapping section. Ports that you have exposed in your container (along with any custom mappings) will be available from the dropdown menu. If you have multiple ports mapping to different paths under the host name, you can configure that here.

  4. Click CONTINUE to open the Advanced Configurations section. Here you can configure the details for your Ingress Controller. Select letsecrypt-prod (might have a different name if you named it differently) from Cluster Issuer dropdown.

    Note

    If you can’t see any Cluster Issuers, ensure that you have set it up correctly.

    Backend Protocol

    The Backend-protocol refers to the protocol used by the Ingress Controller to route traffic to the Application’s service internally. This does not have anything to do with external TLS (https) on the public DNS. Read more.

  5. The next section will allow you to add any Custom Annotations to the Ingress resource. This is an advanced configuration option (nginx annotations) and if it’s not required, click FINISH to create your ingress.

  6. The ingress should be created and your application will be now exposed under the hostnames that you provided.

    Important

    Note that it may take a while for Cert-Manager to create and propage your TLS certificates for HTTPS.


Advanced Ingress Configurations

Fan-out Ingress

To create fan-out ingress configurations (different ‘Applications’ mapped to different paths on the same host name) with the Platformer Console, - simply create new ingresses on the different Applications that need to be part of the fan-out ingress (use the same host name) - In the Service Mapping section of the setup, make sure to change the path (/) in each ingress.

- Application `Front-End` -> Ingress (Hostname: `foo.com`, Path: `/` )
- Application `Backend-API` -> Ingress (Hostname: `foo.com`, Path: `/api`)