-
Notifications
You must be signed in to change notification settings - Fork 51
Can Osiris properly detect an endpoint on a related Ingress for my app ? #33
Comments
After some more research, it appears (and again, I might be wrong, because of my limited knowledge of how Osiris and Kubernetes work):
If this is the case, then I guess it would be useful to allow dynamic IPs to be used, with for example the proxy-hijacker, notifying the activator about the IP when the pod is up. I'd very much like to work on this, if it is of any use to the community, as it would allow Osiris to conform to our use case. Please let me know if my understanding is right, and if I can help in anyway to extend this project, or if by changing my config, I could resolve this problem I have. |
Sorry for the delay in response. I'm currently out on paternity leave.
Pretty accurate. Not as accurate:
The endpoints hijacker has a very specific and very limited role. When Osiris-enabled services are added/updated, the endpoints hijacker (which is a mutating webhook) mutates the service into a selector-less service, which allows our endpoints controller to take over management of endpoints for the service-- a function that is otherwise accounted for by Kubernetes' own endpoints controller. The hijacker doesn't do anything else. With this in mind, there are a few other statements you made about the hijacker or hijacking that might not be accurate. For instance:
Osiris doesn't hijack pods. By and large, Osiris doesn't interfere with the normal function of any Kubernetes constructs you're familiar with (service endpoint hijacking being the only real exception.) Re: paths in your ingress-- you are right that that is something that isn't accounted for. The activator doesn't include anything other than hostnames and/or IPs as indexes in its map deployments that may require reactivation. I'll look at the rest of this issue in greater detail as soon as I am able to. In the meantime, maybe some of the information above will help you dig deeper. |
Hi Kent, No need to apologize here! Thank you so much for taking the time to give me some information about my question. Thanks again! |
I'm new to Go, and very new to Kubernetes.
As I can gather from the source code, once the activator detects a request on a known hostname, it :
I have a problem with my config that throws the following error messages:
My app's ingress name was previously suffixed with
-customer-ingress
. I removed that, thinking that it would help (if my service and my ingress had the samemetadata.name
) but no luck with that, the scale from zero still times out.Here is the config of my app, with the added Ingress from the example in this repo:
I also foresee a problem with the path in my Ingress spec. As far as I can tell, Osiris has no understanding of the Ingress as it is. It thus does not use the path of my app.
I have several apps, under the same domain name, with each instance accessible under a specific path. Is it something that Osiris supports or plan to support in the near future?
Thank you so much for you work. We like the simplicity of Osiris a lot. If our use case needs some work on the source code, we would be more than happy to contribute to Osiris.
The text was updated successfully, but these errors were encountered: