EthanSivan commented on issue #12890: URL: https://github.com/apache/apisix/issues/12890#issuecomment-3741376013
> [@EthanSivan](https://github.com/EthanSivan) You can drive this with a ConfigMap for the plugin source. I had issues with this initially finding the correct path for it to get it picked up, but this works for me: > > apiVersion: v1 > kind: ConfigMap > metadata: > name: my-plugin > data: > my-plugin.lua: | > local core = require("apisix.core") > ... > As values for the apisix chart: > > apisix: > # Nudge the helm chart into adding our custom plugins. > # > # By default this is an empty array, causing apisix to use its > # defaults. The plugins listed here are those same defaults, taken > # from https://github.com/apache/apisix/blob/3.14.1/apisix/cli/config.lua#L194 > # > # Note: Do not include your custom plugin, the helm chart will add it. > # > # See: > # - https://apisix.apache.org/docs/apisix/plugin-develop/#enable-the-plugin > # - https://github.com/apache/apisix-helm-chart/blob/apisix-2.12.4/charts/apisix/templates/configmap.yaml#L266 > plugins: > - "real-ip" > - "ai" > - "client-control" > ... all the default plugins > customPlugins: > enabled: true > plugins: > - name: my-plugin > attrs: {} > configMap: > name: my-plugin > mounts: > - key: my-plugin.lua > path: /opts/custom_plugins/apisix/plugins/my-plugin.lua Thank you for your idea. I tried modifying the Apisix Helm values file, but I encountered some other issues. Could you share how to obtain the Apisix Helm values file (or simply share your Apisix Helm values file)? I'd like to refer to your Apisix Helm values file for modification. Also, could you please send me the command to apply the modified Apisix Helm values file? I asked about these steps via chatgpt, but unfortunately, I wasn't able to apply them successfully. Thank you. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
