Forum Discussion
Re: ha cis multi cluster Openshift route creation
Hey PaulVogt if you see f5-cis-docs/multicluster_user_guides/CIS HA/Active-Active at main · f5devcentral/f5-cis-docs if the second cluster is external and does not have CIS deployed the annotation is then needed as then the second cluster's api will be used to configure this stuff.
From the route from f5-cis-docs/multicluster_user_guides/CIS HA/routes/route-coffee-edge.yaml at main · f5devcentral/f5-cis-docs you see that there are 3 clusters. Cluster 1 and 2 have CIS deployed while cluster 3 does not, so the annotation is used for it as it is external cluster.
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
virtual-server.f5.com/multiClusterServices: '[{"clusterName": "cluster3", "service":
"coffee-svc", "namespace": "cafeone", "servicePort": 8080 }]'
# you can define either service port or target port in the port value
labels:
f5type: systest
name: cafe-coffee-edge
namespace: cafeone
spec:
host: cafeone.example.com
path: "/coffee"
port:
targetPort: 8080
to:
kind: Service
name: coffee-svc