Skip to content

help request: apisix file-standalone mode config apisix.yaml path #13494

@hanxinimm

Description

@hanxinimm

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionlabel for questions asked by users

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions