Study. uk . com
  1. Home
  2. All questions
  3. Question 737

CKA study material · question 737 of 1000

An Ingress rule uses the host *.foo.com. Which Host header matches?

  1. foo.com
  2. bar.foo.com
  3. baz.bar.foo.com only
  4. Any host ending in .com
Show the answer

Answer: B. bar.foo.com

A wildcard host matches when the Host header equals the suffix of the wildcard rule at one label, so bar.foo.com matches while the bare domain does not.

Source: Ingress (Kubernetes) — Hostname wildcards

Challenge yourself on this topic → Study as cards