After apply the haproxy.router.openshift.io/ip_whitelist annotation the route stops working on OpenShift 4
Issue
- After adding or changing the
haproxy.router.openshift.io/ip_whitelist
annotation with a high number of IPs and/or CIDRs (more than 61) in a single route, the route stops working returningApplication not available
503 Service Unavailable
- After the
haproxy.router.openshift.io/ip_whitelist
annotation change in a route, even already created routes (also in other namespaces) will stop working after any changes, for example redeploying a pod - The router pods are logging:
E0125 15:11:34.715929 1 limiter.go:165] error executing template for file /var/lib/haproxy/conf/haproxy.config: template: haproxy-config.template:398:73: executing "conf/haproxy.config" at <$cfgIdx>: wrong type for value; expected string; got templaterouter.ServiceAliasConfigKey
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.