Welcome to the Linux Foundation Forum!

Lab 7 review ingress controller

I don't understand how I'm supposed to set up an ingress controller using the resources allowed during the exam. I can't find a good yaml example to bookmark and I won't be able to use the traefik example. Anyone got any tips?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 1,000

    Hello,

    Were you able to find YAML examples of working with an existing ingress controller when looking among the allowed domains?

    Regards,

  • No, i moved on with the following lab in the meantime. I would still appreciate pointers

  • I'm still struggling with this. I've tried checking out the nginx ingress controller but:
    1. The installation instructions are located outside the allowed domains for the exam (https://kubernetes.github.io/ingress-nginx/deploy/)
    2. The installation instructions depend on which k8s distribution you're using, and the candidate handbook doesn't say which distribution the exam environment uses (https://docs.linuxfoundation.org/tc-docs/certification/tips-cka-and-ckad#cka-and-ckad-environment)

  • Posts: 2,434

    Hi @krisslott,

    The documentation page on Ingress Controllers, at the bottom, provides a link for a controller's installation, which is within the Kubernetes documentation. It may help, in addition to the Ingress and the Ingress Controllers pages.

    Regards,
    -Chris

  • There doesn't seem to be one good example of apiversion v1 with an annotation (e.g. kubernetes.io/ingress.class: traefik ) and an ImplementationSpecific pathType.

  • Posts: 2,434

    Hi @shirleydst,

    The Ingress page may provide the information you are looking for - annotation usage and path types.

    Reading about the three supported path types may help you to decide if/when to use the ImplementationSpecific type, vs Exact and Prefix types.

    Regards,
    -Chris

  • Posts: 1

    Hi @chrispokorni ,

    Unfortunately, I can not find any ingress installation section in the Kubernetes documentation.
    Even not in https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/.
    Will there be some guide in the exam, in case I need to install an ingress controller during the exam?

    Best regards,
    Benni

  • Posts: 2,434

    Hi @haegi,

    The ingress controller implementations listed on that page are third party solutions - each with its own installation mechanism, set of features, documentation, and release cycles - which are independent of the Kubernetes project. Therefore, the Kubernetes documentation is not hosting such material.

    When such resources are needed, typically a Kubernetes administrator would be responsible for retrieving the required installation and configuration steps from the documentation of the desired ingress controller.

    As far as accessing resources for such tools during the certification exam, please reach out to the Customer Support Team with any exam-related questions at trainingsupport.linuxfoundation.org.

    Regards,
    -Chris

  • Posts: 1,000

    Hello,

    This info may also help. The nginx folks had a breaking change 2 days ago:

    https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.0.0

    If you miss the ingressclass the controller gives you:

    "Ignoring ingress because of error while validating ingress class" ingress="default/ingress-test" error="ingress does not contain a valid IngressClass"

    So a quick fix is adding the annotation for the ingress class to your ingress.yaml Otherwise the whole ingress part of lab 7 will not work.

    1. apiVersion: networking.k8s.io/v1
    2. kind: Ingress
    3. metadata:
    4. name: ingress-test
    5. namespace: default
    6. annotations:
    7. kubernetes.io/ingress.class: "nginx"
    8. spec:
    9. rules:
    10. - host: www.example.com
    11. http:
    12. paths:
    13. - backend:
    14. service:
    15. name: secondapp
    16. port:
    17. number: 80
    18. path: /
    19. pathType: ImplementationSpecific
    20. - host: thirdpage.org
    21. http:
    22. paths:
    23. - backend:
    24. service:
    25. name: thirdpage
    26. port:
    27. number: 80
    28. path: /
    29. pathType: ImplementationSpecific

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training