Going through the CKA course.
In the Ingress config on the right why do we need to specify the path if the host already separates the traffic?
In the Ingress config on the right why do we need to specify the path if the host already separates the traffic?
In the Ingress resource, host defines the domain name. It tells Kubernetes to match requests coming to this domain.
wear in the host is a sub-domain and not a path.
With path, you define a URL path like wear.my-online.store.com/wear, which instructs Ingress to route only requests that start with /wear received on the domain to wear-service on port 80.
Thank you . but since we are already using wear.my-online.store.com we should not need the " /wear " right?
If the intention is to route based on URL wear.my-conline-store.com/wear path, the path: /wear is required. If it is to route based on sub-domains, then the path has to be path: /.
Which lab or lecture is this screenshot from? I need to see more context around it.