Ingress ¶
Exposing services ¶
*.mycluster.k8s.example.net should be configured to resolve to the cluster’s ingress-nginx service.
To route a public hostname to a service in the cluster:
- Create an Ingress
- Apply the annotation kubernetes.io/ingress.class: nginxto associate with the cluster’s main ingress service
- Apply the annotation cert-manager.io/cluster-issuer: letsencrypt-prodto enable automatic setup of an SSL certificate
- Assign an unused hostname under .mycluster.k8s.example.net(every public service should start with one of these)
- Optionally, CNAME a custom hostname to the .mycluster.k8s.example.nethostname and add it to the same ingress