Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Lecture on Ingress Classes #26

Open
ivorscott opened this issue Jan 7, 2022 · 1 comment
Open

New Lecture on Ingress Classes #26

ivorscott opened this issue Jan 7, 2022 · 1 comment
Labels
deprecation update A fix for something that is outdated but not broken yet enhancement New feature or request

Comments

@ivorscott
Copy link
Collaborator

ivorscott commented Jan 7, 2022

Add lecture or new section for ingress classes.

Ingress classes

Ingresses can be implemented by different controllers, often with different configuration. Each Ingress should specify a class, a reference to an IngressClass resource that contains additional configuration including the name of the controller that should implement the class.

https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class

Default IngressClass

You can mark a particular IngressClass as default for your cluster. Setting the ingressclass.kubernetes.io/is-default-class annotation to true on an IngressClass resource will ensure that new Ingresses without an ingressClassName field specified will be assigned this default IngressClass.

https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class

DefaultBackend

An Ingress with no rules sends all traffic to a single default backend. The defaultBackend is conventionally a configuration option of the Ingress controller and is not specified in your Ingress resources.

If none of the hosts or paths match the HTTP request in the Ingress objects, the traffic is routed to your default backend.

spec:
  defaultBackend:
    service:
      name: nginx
      port:
        number: 80

Explain DefaultBackend Warning

If you don't have a defaultBackend on the ingress resources or the ingress controller you will see a warning when inspecting the ingress resources.

kubectl describe ingress 

Name: demo-app
Namespace: default
Address:
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
Host Path Backends

nginxinc/kubernetes-ingress#966

@ivorscott ivorscott moved this from Ideas 💡 to Up Next 🧭 in Bret Fisher's Course Updates and Fixes Jan 7, 2022
@ivorscott ivorscott added the enhancement New feature or request label Jan 7, 2022
@ivorscott ivorscott changed the title Ingress Classes New Section Ingress Classes Jan 7, 2022
@ivorscott ivorscott moved this from Up Next 🧭 to Ideas 💡 in Bret Fisher's Course Updates and Fixes Jan 7, 2022
@BretFisher BretFisher changed the title New Section Ingress Classes New Lecture on Ingress Classes Jun 22, 2022
@BretFisher
Copy link
Owner

Kubernetes Mastery Original Q&A

@BretFisher BretFisher added the deprecation update A fix for something that is outdated but not broken yet label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation update A fix for something that is outdated but not broken yet enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants