Description
How to customize the default path of apisix.yaml/apisix.json via args or env vars for K8s hot reload?
I am currently deploying APISIX in a Kubernetes environment using Standalone mode, and I mount the configuration files via K8s volumes.
My goal is to enable hot reloading for the configuration. However, it seems this isn't working as expected, and I suspect it might be related to the file path.
Could you please advise on how to change the default path of apisix.yaml or apisix.json? Specifically, is there a way to override this default path using startup arguments or environment variables?
Any guidance or best practices for achieving file hot reload in K8s would be greatly appreciated.
Environment
- APISIX version (run
apisix version): apache/apisix:3.16.0
- Operating system (run
uname -a):
- OpenResty / Nginx version (run
openresty -V or nginx -V):
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): file
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Description
How to customize the default path of apisix.yaml/apisix.json via args or env vars for K8s hot reload?
I am currently deploying APISIX in a Kubernetes environment using Standalone mode, and I mount the configuration files via K8s volumes.
My goal is to enable hot reloading for the configuration. However, it seems this isn't working as expected, and I suspect it might be related to the file path.
Could you please advise on how to change the default path of apisix.yaml or apisix.json? Specifically, is there a way to override this default path using startup arguments or environment variables?
Any guidance or best practices for achieving file hot reload in K8s would be greatly appreciated.
Environment
apisix version): apache/apisix:3.16.0uname -a):openresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info): fileluarocks --version):