Ingress Controllers
Gots to have a way to get to the applications that you built, so you have to have an ingress controller. It handles domain name based routing and other stuffs.
Tools
I've been using the nginx ingress controller that is part of the kubernetes project to do the job. It seems to work out reasonably well.
You can run through the installation documentation to get things working. It's pretty straight forward.
One of the nice things that it will do is create a load balancer for you that you can use to immediately start directing traffic. At least it will if you have the MetalLb installed.
Example
# ingress.yml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-demo
labels:
app: nginx-demo
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
spec:
ingressClassName: nginx
rules:
- host: "faultycloud.io"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: nginx-service
port:
number: 80