-
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
Can not access to container port via service on OCP #8134
Comments
@eivantsov created an issue in the upstream openshift/origin#17981 |
@riuvshin can you take a look on openshift team response? |
I still have hard time finding docs on how to apply it for oc cluster up. |
@skabashnyuk same here, have no idea and unable to find any docs related to how can I configure kubenet with |
@riuvshin can comment that in openshift/origin#17981 or openshift mail list? |
@sleshchenko @eivantsov I have tried to reproduce and So if the pod name is used (instead of the service name) the container to sidecar connection works fine. Wouldn't it be enough? |
@l0rd good to know there's workaround. Btw, how did you manage to find this solution? Any docs or clues that made you try pod name instead of a service name? Unfortunately, it is not smth that solves LSP in a sidecar issue. Our client reads ws config, and grabs all servers of a special kind from runtime. In runtime, servers acquire URLs, and those are generated depending on infrastructure. In case of internal urls (servers can have internal urls) they are returned as service names. So, we need changes for OpenShift infra then, so that |
I have just |
Still actual for ver.6.5.0 |
Should we perhaps close the issue as it cannot be fixed on Che side. The issue has been opened for a while and the issue in Origin does not seem to get any attention either. |
@artaleks9 what do you mean by that? do you understand the problem? issue is not in che so it will not work with any CHE version. |
@eivantsov we still need to find a workaround, so maybe we can leave this issue open and wait till it gets an appropriate priority. |
@garagatyi what if we just say - if your cluster has been started with What I did is:
Of course, to make sure it really works, I created a Che workspace with one pod having two containers, one of those running a Language server. You can find ws json here - https://gist.github.com/eivantsov/374a30d5a5108bf24e00397d3cb6a3de Che LS client was able to connect to a language server running in the different container in the same pod: Changing your Docker daemon settings is a relatively easy operation. IMHO, it solves a local scenario while a proper OpenShift cluster does not have this problem (I was able to verify it works fine on OSD (when we had it) and OSO Pro - see screenshot below) I may spin up an OpenShift cluster using Ansible according to official docs and confirm services are fine there too. |
@eivantsov great job! We may investigate if it makes sense to change
minishift and minikube default docker config (and provide a PR if it does).
|
Yes, this is the next thing to try. I think docker daemon args are supported as mini(shift/kube) args. |
@l0rd there's no need to change any default configs (I mean urgent need) since you may pass config for docker daemon as an arg:
Works for me on Fedora: Since this arg is most certainly inherited from minikube, I do not see any reasons why it should fail there. I will try it later of course to confirm. |
@l0rd @garagatyi do you think we can get away with updating docs? It does look like configuring Docker daemon options solves the local usecase scenario. |
@eivantsov great investigation! Yes, I would love having docs updated (for both k8s and openshift installations) and think that it would be enough to close this issue. |
@eivantsov 👍. I have tested and it work on minkube too. Let's update the documentation and close this one. |
That's good, thanks a lot! |
Closing since we found a solution with userland proxy. |
Description
Can not access to container port via service on local OCP.
This feature is needed for running language servers in parallel containers.
Reproduction Steps
Add to Project
Import YAML/JSON
Create
Objects to import
requester
container.curl tomcat:8080
Expected: Response
HELLO
Actual: Request hung up.
Note that it works fine on https://console.codenvy.openshift.com/ or http://console.starter-us-east-2.openshift.com/.
Note that it works fine if containers are in separated pods.
Containers in separated pods
OCP version:
3.7.0 and 3.9.0
Diagnostics:
The text was updated successfully, but these errors were encountered: