Skip to content

Commit cd293b3

Browse files
authored
chore: add example to configure shared dict of kubernetes and nacos service discovery (#179)
Signed-off-by: Nic <[email protected]>
1 parent adc0060 commit cd293b3

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

charts/gateway/values.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ apisix:
7979
# -- Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings,
8080
# click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict
8181
customLuaSharedDicts: []
82+
# - name: kubernetes
83+
# size: 20m
84+
# - name: nacos
85+
# size: 20m
8286
# - name: foo
8387
# size: 10k
8488
# - name: bar
@@ -407,8 +411,6 @@ discovery:
407411
# https://apisix.apache.org/docs/apisix/discovery/#configuration-for-eureka
408412
# https://apisix.apache.org/docs/apisix/discovery/dns/#service-discovery-via-dns
409413
# https://apisix.apache.org/docs/apisix/discovery/consul_kv/#configuration-for-consul-kv
410-
# https://apisix.apache.org/docs/apisix/discovery/nacos/#configuration-for-nacos
411-
# https://apisix.apache.org/docs/apisix/discovery/kubernetes/#configuration
412414
#
413415
# an eureka example:
414416
# ```
@@ -424,22 +426,6 @@ discovery:
424426
# send: 2000
425427
# read: 5000
426428
# ```
427-
#
428-
# the minimal Kubernetes example:
429-
# ```
430-
# kubernetes: {}
431-
# ```
432-
#
433-
# The prerequisites for the above minimal Kubernetes example:
434-
# 1. [Optional] Set `.serviceAccount.create` to `true` to create a dedicated ServiceAccount.
435-
# It is recommended to do so, otherwise the default ServiceAccount "default" will be used.
436-
# 2. [Required] Set `.rbac.create` to `true` to create and bind the necessary RBAC resources.
437-
# This grants the ServiceAccount in use to List-Watch Kubernetes Endpoints resources.
438-
# 3. [Required] Include the following environment variables in `.nginx.envs` to pass them into
439-
# nginx worker processes (https://nginx.org/en/docs/ngx_core_module.html#env):
440-
# - KUBERNETES_SERVICE_HOST
441-
# - KUBERNETES_SERVICE_PORT
442-
# This is for allowing the default `host` and `port` of `.discovery.registry.kubernetes.service`.
443429

444430
# access log and error log configuration
445431
logs:

0 commit comments

Comments
 (0)