F5Networks / k8s-bigip-ctlr

Repository for F5 Container Ingress Services for Kubernetes & OpenShift.
Apache License 2.0
357 stars 195 forks source link

[CRD] Allow monitoring of an alias port in VirtualServer and TransportServer #2361

Closed tkam8 closed 2 years ago

tkam8 commented 2 years ago

Title

Allow monitoring of an alias port in VirtualServer and TransportServer

Description

As an app owner, I want to be able to monitor an alias port that is different from the port that is used to serve traffic. I am using calico BGP (clusterIP mode) integration so will LB directly to pods.

Actual Problem

Today I cannot specify an aliasPort (a.k.a. targetPort) in the CRDs that makes the monitor target a different port to determine the health of a pool member.

Solution Proposed

In the TransportServer CRD and VirtualServer CRD monitor block, add a parameter like targetPort to define the monitored port.

Alternatives

the only alternative is to use AS3 configmaps, but today we cannot use both configmaps and CRDs so will be high impact.

trinaths commented 2 years ago

Created [CONTCNTR-3376] for internal tracking.