It seems writing documentation is difficult then coding. I always felt the other way J
I been scratching my head last 2 days to test basic use case of multiple routers/shards but no luck yet.
With all due to respect, OpenShift documentation has to be improved a lot for real consumption. Current documentation is very high level. We have to spend lot of time to understand, how a feature really works in multiple contexts. It’s all at all written keeping customer or platform teams in the mind. Just to prove a feature, taking a weeks and weeks to understand, POC and prove it. Lot of time waste …
Shards feature is similar to multiple routers deployment (every router has its own IP failover pods, floating IP, same ports to avoid port conflict)? Since every router has its own floating IP address, no more ports conflict (80/443) or no special IP tables rules required?
Or sharing is different than multiple routers deployment??
I agree with you, and I have tried to contribute to the doc but that’s wasn’t an easy task so I stopped.
Maybe I was also to naïve so blame me that I have stopped contribution.
@1: Currently that’s not possible you will need to add for every route the label for the dedicate router.
‘oc create route …’
have no options to set labels you will need to use
oc expose service ... --labels='router=one' --hostname='...'
or you can use the labels in the webconsole.
Oh and by the way the default router MUST also have ROUTE_LABELS if you don’t want to expose all routes to the default router.
@2: you will need the new template from OCP 3.3 there are additional env variables necessary to be able to use more the none router on the same node.
and you need to add on the router nodes in the iptables chain ‘OS_FIREWALL_ALLOW’ the additional ports.
@3: This would be a little bit tricky on the same node due to the fact that the
only handle one config file. Maybe there is a way with *VIPS but I have never tried this.
Current sharding documentation is very high level, doesn’t cover step by step actual real world use cases.
Anyway, I was succeeded to create 2 shards. Lot of questions on this topic on how to proceed next …
1. How to tell a project that all apps created on this project should use router #1 or router #2?
2. Now we have 3 routers (default created as part of installation + additional 2 routers created). How the ports work? 80, 443 & 1936 assigned to default router. I changed ports to 81/444/1937 and 82/445/1938 to respectively shad #1 #2. These ports open automatically or explicit action required?
3. Ipfailover (floating VIP) bound to default router. Do we need to create additional IP failover pods with different IP’s and match to shad #1 and #2? Or can we share same IP failover pods with single floating VIP to newly created shad’s as well?
There are docs here:
On Sat, 24 Sep 2016 at 06:13 Srinivas Naga Kotaru (skotaru) <skotaru cisco com> wrote: