Skip to content

docs(standalone): explain route file paths and ConfigMap updates - #14283

Open
Zi-Yi-Ming wants to merge 1 commit into
apache:masterfrom
Zi-Yi-Ming:docs/standalone-route-file-path
Open

Zi-Yi-Ming wants to merge 1 commit into
apache:masterfrom
Zi-Yi-Ming:docs/standalone-route-file-path

Conversation

@Zi-Yi-Ming

Copy link
Copy Markdown

Description

Explain where file-driven Standalone mode looks for YAML and JSON route files. Cover the startup configuration selected by apisix start -c and the route filename selected by APISIX_PROFILE.

Show how to link the watched route file to a directory-mounted Kubernetes ConfigMap. The example keeps the rest of the APISIX configuration directory available and explains the update behavior of single-file subPath mounts.

Related issue

Refs #13494.

Validation

  • Started APISIX on OpenResty 1.31.9.1 with a startup configuration outside conf. Verified YAML and JSON route file lookup with both the default profile and APISIX_PROFILE=prod.
  • Changed the file next to the startup configuration and confirmed the gateway continued to serve the watched file. Replaced the target of the watched link and confirmed the response changed without a master process restart in all four cases.
  • Ran the documented symlink command with temporary paths in Linux and verified that it replaced the existing route file and followed updates to the projected file. Kubernetes mount behavior is documented in the ConfigMap guide.
  • markdownlint-cli@0.25.0 and git diff --check passed.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect the changes made in the PR
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

The validation above exercises the documented behavior in a local Docker environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant