You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/29 13:31:42 UTC
[GitHub] [apisix] zhixiongdu027 commented on issue #7569: Apisix with multiple K8s clusters as a source for service discovery
zhixiongdu027 commented on issue #7569:
URL: https://github.com/apache/apisix/issues/7569#issuecomment-1230311717
Hello, every one:
This work is continuing, and I hope you can continue to discuss the configuration issue
At present, the demo I have completed supports the configuration in the following two modes:
# Singleton Mode
compatible with current configuration, except for add shared_size field
## config.yaml :
```yaml
kubernets:
schema:
....
services:
....
client:
....
shared_size: 1m
```
and rendered out nginx.conf as follows
## nginx.conf:
```
http {
...
lua_shared_dict kubernetes 1m;
....
}
```
# Multiple Mode
configuration same as the singleton pattern except that they under an arrays
## config.yaml
```yaml
kubernets:
- services: ...
client: ...
id: "release"
shared_size: 2m
- services: ...
client: ...
id: "debug"
shared_size: 1m
```
the biggest difference from a singleton is that multiple lua_shared_dicts are rendered
## nginx.conf
```
http {
...
lua_shared_dict kubernetes-release 2m;
lua_shared_dict kubernetes-debug 1m;
...
}
```
I think the configuration of these two mode is very easy to understand and has the same design as some another of the APISix configuration
If everyone thinks it's okay, I'll start the next step.
@spacewander @tokers @tzssangglass @afbm08 @liangyawang
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org