Welcome to the Linux Foundation Forum!

Istio Service Mesh Essentials (LFS245)

elamin
elamin Posts: 8

Hi All,

I am currently working through the Istio course material in preparation for the ICA exam. I believe I have found a syntax error in a code snippet within the "Resiliency and Fault Injection" chapter, specifically in the "Request Timeouts and Retries" section.

The course provides an example similar to this:

# Hypothetical snippet from course material
spec:
  http:
  - route:
    - destination:
        host: backend.default.svc.cluster.local
        timeout: 2s  # Shown inside 'destination'

However, when verifying the schema via kubectl explain, I found that timeout is not a valid field for the destination object.

According to kubectl explain vs.spec.http.route.destination:

  • Valid fields are: host, port, and subset.

According to kubectl explain vs.spec.http:

  • The timeout field is actually a sibling of route, belonging directly under the http array element.

Correct Syntax:

spec:
  http:
  - timeout: 2s  # Correct location
    route:
    - destination:
        host: backend.default.svc.cluster.local

Attempting to apply the structure shown in the course results in a validation error because the destination object does not support the timeout key. Could you please verify this and update the course materials if necessary to avoid confusion for students preparing for the exam?

Thank you for your time and for the great course materials!

Best regards,

Answers

  • fazlur.khan
    fazlur.khan Posts: 76

    Dear @elamin ,

    Thank you for flagging this, and for verifying it against the schema before reporting. That's exactly the right approach, and it made the issue easy to confirm.

    You're correct. timeout is a valid field, but it belongs on the HTTP route rule as a sibling of route, not inside destination. Destination only accepts host, subset, and port. Your corrected snippet is the right structure.

    I'm flagging this to the course maintainers so the example can be corrected. Thanks again. Reports like this improve the material for everyone preparing for the ICA.

    Best of Luck for your ICA Exam!!

    Best,
    Faz

  • Flavia
    Flavia Posts: 2,644

    Hi @elamin ,

    The indentation was fixed in the course. Thank you for flagging it.

    Regards,
    Flavia

Categories

Upcoming Training