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
authenticate when kiali is deployed behind openshift route with non-standard port #6181
authenticate when kiali is deployed behind openshift route with non-standard port #6181
Conversation
…tandard port fixes: kiali#6180
Here is how to test this. You need to configure OpenShift so its ingress router binds to port 31102 for https (not the default 443). Before you start, make sure your dev environment has both this server PR and the operator PR pulled locally. You need both.
endpointPublishingStrategy:
hostNetwork:
httpPort: 80
httpsPort: 31102
protocol: TCP
statsPort: 1936
type: HostNetwork
index 7827d784a..396622c1b 100644
--- a/make/Makefile.cluster.mk
+++ b/make/Makefile.cluster.mk
@@ -11,7 +11,7 @@
.prepare-ocp: .ensure-oc-exists .prepare-ocp-image-registry
@$(eval CLUSTER_REPO_INTERNAL ?= $(shell ${OC} get image.config.openshift.io/cluster -o custom-columns=INT:.status.internalRegistryHostname --no-headers 2>/dev/null))
- @$(eval CLUSTER_REPO ?= $(shell ${OC} get image.config.openshift.io/cluster -o custom-columns=EXT:.status.externalRegistryHostnames[0] --no-headers 2>/dev/null))
+ @$(eval CLUSTER_REPO ?= "$(shell ${OC} get image.config.openshift.io/cluster -o custom-columns=EXT:.status.externalRegistryHostnames[0] --no-headers 2>/dev/null):31102")
@$(eval CLUSTER_KIALI_INTERNAL_NAME ?= ${CLUSTER_REPO_INTERNAL}/${CONTAINER_NAME})
server:
web_port: "31102" (note: the port value must be a string - so ensure you wrap the number in quotes)
|
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 tested this against 1.65 (ossm 2.4) and it is working.
fixes: #6180