I think you're looking for the APIC feature "Gateway Extensions".
This isn't specific to RTVS.
For any configuration that is automatically generated for you, it won't work to manually change it on the gateway, since the auto-generation would periodically overwrite your changes --- as you expected it to, and as you experienced --- not just at pod restart, but also when the API Manager republishes to the API Gateway.
This is one of the purposes of Gateway Extensions. For an APIGW (which you are using, but unlike the v5 compatibility GW), the Gateway Extensions have two purposes:
1. They can add generic extra gateway functionality, which for k8s also could be done using a configMap.
2. They can *modify* automatically generated configuration, in which case this automatic modification happens every time, so with every publish on every gateway in your cluster / gateway service.
In this case, you're asking to modify the API Gateway object (apigw) itself, which is automatically generated by the publish, therefore you need purpose (2) to modify that automatically.
Just note the name it's generated at on the gateway, and then in the API Manager add the configuration that modifies it --- the same CLI you would otherwise do manually on one gateway --- and that should then be applied every time on every gateway.
Here is the relevant documentation page, specific to the APIGW, for the most recent release 10.0.x:
https://www.ibm.com/docs/en/api-connect/10.0.x?topic=behavior-gateway-extension-guidelines-datapower-api-gatewayIt doesn't have an example of modifying the exact property or object you're talking about, but it does have a couple of very equivalent examples of modifying properties on auto-generated objects.
------------------------------
Morris Matsa
------------------------------