Red Hat Bugzilla – Bug 1282822
[DOCS] Document how to create routes for specific labels/namespaces/projects
Last modified: 2017-02-08 20:18:57 EST
Document URL: https://docs.openshift.com/enterprise/3.0/install_config/install/deploy_router.html
Section Number and Name: ?
Describe the issue: In OSE 3.0.2 you can expose routes depending on a few things (https://docs.openshift.com/enterprise/3.0/whats_new/ose_3_0_release_notes.html#ose-3-0-2-0):
* Pass --namespace to the router command to select routes in a single namespace.
* Pass --labels=<selector> or --fields=<selector> to select only routes with the provided labels or fields.
* Pass --project-labels=* to show routes in all labels that the router’s service account is granted access to, --project-labels=<selector> to filter that list by label, or --namespace-labels=<selector> to filter all labels when the router service account has that permission.
But this doesn't work when creating the router using "oadm router" command.
Suggestions for improvement: Document how to pass those parameters
I've been able to make it work, but modifying the DC in order to set env. variables (as seen here https://github.com/openshift/origin/blob/b7de777c90fd892cd746c905c17d92710eae3de8/pkg/cmd/infra/router/router.go#L45), but the idea will be to create the router with the parameters specifically.
Also, I've need to add the cluster-reader role to the system:openshift-router account because otherwise, it complains:
E1117 08:41:32.006074 1 controller.go:61] unable to find namespaces for router: User "system:openshift-router" cannot list all namespaces in the cluster
OpenShift 3.3 freshly installed and even if in the documentation says to add cluster-reader permissions to the service account system:serviceaccount:default:router, it keeps failing with
unable to find namespaces for router: User "system:openshift-router" cannot list all namespaces in the cluster
So you need to add the cluster-reader permissions to the system:openshift-router user too...
Can this be prioritized or clarified please?
I've created a PR for this BZ:
I've chatted to Ben Bennett from the networking team about how the options you're asking about are out of date, and we thought it would be good to highlight router sharding and the environment variable list as an alternative, as some of the options you're asking about above don't exist anymore.
Also, I'm not sure why you can't get the right service account stuff going. It seems to work fine for me. Is there something I'm missing?
Things have changed a lot since November 2015, so IDK if this bz is still needed.
Commit pushed to master at https://github.com/openshift/openshift-docs
Merge pull request #3637 from bfallonf/route_1282822
Bug 1282822 Arranged section creating routes and the post-creation options
I'll agree. I've merged the BZ, as I think the PR added to/arranged the topics to be more clear on the options.
I'll move this BZ to release_pending.
Please let me know if you have any other thoughts.
Link to released docs: