Open CarlosSanchez01 opened 2 months ago
@zhujian7 is that a bug we introduced recently?
hrm I think it is from here https://github.com/open-cluster-management-io/clusteradm/pull/411
@qiujian16 how can we correct it? I see you label it as bug, I guess it was not the intended behaviour.
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:
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