You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proxying OCM connectivity and breaking update of clusteradm
Context
We have a use case in which OCM hub cluster cannot be accessed directly. We design a microservice that acts as a proxy to expose k8s api. This solution was working for v8.0 of clusteradm by changin the --hub-apiserver flag to direct to the exposed microservice.
The problem
We now encounter the following error when trying to run the clusteradm command:
This seems to be an issue caused by some additional paths that do not conform with k8s.
The proxy now fails when reaching the point in which the join command makes a call to apis/cluster.open-cluster-management.io/v1?timeout=32s] which now gives an error because that endpoint does exist (I assume).
Suggestions
Maybe this is intended but we might be interested on developing this further to allow proxying the clusteradm join command.
For our intended use, clusteradm reached a breaking update. We understand this use case is quite niche but it might still be an important feature for other people.
Would you help to check how the proxy is set? apis/cluster.open-cluster-management.io/v1 is for the API discovery, is that not included in the proxy path?
It is included, we forward all connections right now. The problem seems to be with permissions, it is just strange that it has changed with the subversion. This is the error we get:
response:
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"forbidden: User "system:anonymous" cannot get path "/apis/cluster.open-cluster-management.io/v1"","reason":"Forbidden","details":{},"code":403}
Proxying OCM connectivity and breaking update of clusteradm
Context
We have a use case in which OCM hub cluster cannot be accessed directly. We design a microservice that acts as a proxy to expose k8s api. This solution was working for v8.0 of clusteradm by changin the --hub-apiserver flag to direct to the exposed microservice.
The problem
We now encounter the following error when trying to run the clusteradm command:
Possible explanation
This seems to be an issue caused by some additional paths that do not conform with k8s.
The proxy now fails when reaching the point in which the join command makes a call to
apis/cluster.open-cluster-management.io/v1?timeout=32s]
which now gives an error because that endpoint does exist (I assume).Suggestions
Maybe this is intended but we might be interested on developing this further to allow proxying the clusteradm join command.
For our intended use, clusteradm reached a breaking update. We understand this use case is quite niche but it might still be an important feature for other people.
Authors
@AllGoodNamesRTaken @CarlosSanchez01
The text was updated successfully, but these errors were encountered: