Score:1

Is it possible to have multiple ingress paths under the same host that point to the same backend service

uy flag

I'm trying to restrict access to certain paths on my service how can I accomplish this on kubernetes? I have a service that runs a basic API but it also runs an admin service. Is it possible to use multiple paths under the same host as an ingress rule?

Example.com/API can be open but Example.com/admin needs to be restricted. Both services run on the same backend service.

pt flag
An ingress can certainly contain muliple path-based rules, but the question of "restricted" vs "not restricted" is really a decision that your application needs to make (e.g., by requiring authentication for the admin endpoints).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.