-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use properties che.api.{external,internal}
if exist.
#13774
Use properties che.api.{external,internal}
if exist.
#13774
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Can one of the admins verify this PR? |
@l0rd I noticed when I tracking the another issue on Che-Theia. I believe this PR is effective to reduce the workload of Ingress. |
che.api.{external,internal} was used mainly in docker. Especially on mac, there was a no chance to use external URL from inside of containers. I'm not sure the in k8s world right now external, internal urls are different. |
@skabashnyuk In strict, it should be decided by metrics. But roughly, always accessing ingress gateway is redundant and will cause heavy load to the ingress. I think it's better to access by internal address if we can get the address with low cost. |
Removing label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any documentation about che.api.internal
and che.api.external
in the current repo; Che will pick up any env vars starting with CHE
and convert them to properties, but I don't think we should use properties that don't have defaults (even if null) in che.properties
/multiuser.properties
.
I do agree that it would be good for Che to use service addresses instead of public-facing routes when possible though.
Signed-off-by: Masaki Muranaka <[email protected]>
@l0rd I rebased this and added the 7.x milestone tag. As it is not critical. |
I reject this my myself as this PR will be replaced with the another PR soon. |
Signed-off-by: Masaki Muranaka [email protected]
What does this PR do?
Uses properties
che.api.external
instead ofche.api
.che.api.internal
also.Che-Theia uses the environment variable CHE_API_INTERNAL to
avoid authentication issuesreduce network traffic on the multi-user envs.But che-host doesn't care
che.api.internal
.What issues does this PR fix or reference?
None.