mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 09:11:18 +00:00
1.1 KiB
1.1 KiB
Exercise — Ingress
-
We want to expose a web app through an ingress controller
-
This will require:
-
the web app itself (dockercoins, NGINX, whatever we want)
-
an ingress controller
-
a domain name (
use \*.nip.ioor\*.localdev.me) -
an ingress resource
-
Goal
-
We want to be able to access the web app using a URL like:
or
(where A.B.C.D is the IP address of one of our nodes)
Hints
-
For the ingress controller, we can use:
-
the container.training Traefik DaemonSet
-
If our cluster supports LoadBalancer Services: easy
(nothing special to do)
-
For local clusters, things can be more difficult; two options:
-
map localhost:80 to e.g. a NodePort service, and use
\*.localdev.me -
use hostNetwork, or ExternalIP, and use
\*.nip.io
-