Files
container.training/slides/exercises/kyverno-ingress-domain-name-details.md
Jérôme Petazzoni 164651c461 Add new Kyverno exercise
2021-12-14 16:39:06 +01:00

945 B

Exercise — Generating Ingress With Kyverno

When a Service gets created...

(for instance, Service blue in Namespace rainbow)

...Automatically generate an Ingress.

(for instance, with host name blue.rainbow.MYDOMAIN.COM)


Goals

  • Step 1: expose all services with a hard-coded domain name

  • Step 2: only expose services that have a port named http

  • Step 3: configure the domain name with a per-namespace ConfigMap

    (e.g. kubectl create configmap ingress-domain-name --from-literal=domain=1.2.3.4.nip.io)


Hints