Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: plugin_config support in standalone deployment mode #11255

Open
mangolost opened this issue May 15, 2024 · 1 comment · May be fixed by #11332
Open

docs: plugin_config support in standalone deployment mode #11255

mangolost opened this issue May 15, 2024 · 1 comment · May be fixed by #11332
Assignees
Labels
doc Documentation things question label for questions asked by users

Comments

@mangolost
Copy link

Description

We deploy apisix in standalone mode and use apisix.yaml to config our routes.

Since routes are a lot and the plugins used are similar, we intend to use [plugin_config] to extract commonly used plugin configurations. In this case, we can just use plugin_config_id in [routes] and it appears more consice.

However, it does not work and the request fails with a status code of 503.

We notice that [plugin_config] is not mentioned in official document: https://apisix.apache.org/docs/apisix/3.2/deployment-modes/#standalone. Does is mean that [plugin_config] is not supported in standalone mode and can only be set with Admin API?

Can [plugin_config] be supported in in apisix.yaml with standalone deployment mode?

@kayx23 kayx23 added question label for questions asked by users doc Documentation things labels Jun 5, 2024
@kayx23 kayx23 self-assigned this Jun 5, 2024
@kayx23
Copy link
Member

kayx23 commented Jun 5, 2024

Hi @mangolost , plugin configs should be supported and you may see the test case here: https://github.com/apache/apisix/blob/master/t/config-center-yaml/plugin-configs.t

I'll be updating the issue to a docs issue.

As for the 503, please make sure you have first created the plugin_config resource with the ID you would like to reference in routes. The error seems to be caused by referencing to a plugin_config ID that does not exist.

image

@kayx23 kayx23 changed the title feat: support [plugin_config] in apisix.yaml with standalone deployment mode docs: plugin_config support in standalone deployment mode Jun 5, 2024
@kayx23 kayx23 linked a pull request Jun 5, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Documentation things question label for questions asked by users
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

2 participants