Skip to content

Commit c8309af

Browse files
fix: placement for customPlugins and plugins config (#2189)
1 parent ee30bd6 commit c8309af

1 file changed

Lines changed: 24 additions & 18 deletions

File tree

docs/en/latest/tutorials/using-custom-plugins.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,31 +108,37 @@ First, we will update the `values.yaml` file to mount the custom Plugin we creat
108108
You can configure the Plugin under `customPlugins` as shown below:
109109

110110
```yaml {title="values.yaml"}
111-
customPlugins:
112-
enabled: true
113-
plugins:
114-
- name: "custom-response"
115-
attrs: {}
116-
configMap:
117-
name: "custom-response-config"
118-
mounts:
119-
- key: "custom-response.lua"
120-
path: "/usr/local/apisix/apisix/plugins/custom-response.lua"
111+
apisix:
112+
...
113+
...
114+
customPlugins:
115+
enabled: true
116+
plugins:
117+
- name: "custom-response"
118+
attrs: {}
119+
configMap:
120+
name: "custom-response-config"
121+
mounts:
122+
- key: "custom-response.lua"
123+
path: "/usr/local/apisix/apisix/plugins/custom-response.lua"
121124
```
122125
123126
You should also enable the Plugin by adding it to the `plugins` list:
124127

125128
```yaml {title="values.yaml"}
126-
plugins:
127-
- api-breaker
128-
- authz-keycloak
129-
- basic-auth
130-
- batch-requests
131-
- consumer-restriction
132-
- cors
129+
apisix:
133130
...
134131
...
135-
- custom-response
132+
plugins:
133+
- api-breaker
134+
- authz-keycloak
135+
- basic-auth
136+
- batch-requests
137+
- consumer-restriction
138+
- cors
139+
...
140+
...
141+
- custom-response
136142
```
137143

138144
Finally you can enable the Ingress controller and configure the gateway to be exposed to external traffic. For this, set `service.type=NodePort`, `ingress-controller.enabled=true`, and `ingress-controller.config.apisix.serviceNamespace=ingress-apisix` in your `values.yaml` file.

0 commit comments

Comments
 (0)