Hello David,
Yes, 1MB is a limitation of configMaps in kubernetes, and for larger bundles initContainers are your best option. They're also useful for many other purposes, and they're the primary method for avoiding derived gateway images, something we support but don't recommend. We provide examples for building and using initContainers in our Layer7 Community repo here, https://github.com/Layer7-Community/Utilities/tree/main/gateway-init-container-examples.
Regards,
------------------------------
Ben Urbanski
Product Manager, API Gateway
Layer7 API Management
------------------------------
Original Message:
Sent: May 21, 2025 08:05 AM
From: David Vinell
Subject: configMap Size Restrictions
There are a variety of ways to mount Gateway (Restman format) Bundles to the Gateway Container. The best option is making use of existingBundles where the bundle has been created ahead of deployment as a configMap or secret. This allows for purpose built Gateways with a guaranteed set of configuration, apis/services."
Unfortunately a configMap in OpenShift can be maximum 1MB in size, which makes it almost useless for any non-trivial Gateway Policy.
I guess I must build an initContainer instead?
Regards,
Dave V.