I'm trying to use a Kong plugin for k8s ingress customization. Specifically, i'm using the Kong ingress controller and the "request-transformer-advanced" plugin (Reference: https://docs.konghq.com/hub/stone-payments/kong-plugin-url-rewrite/)
The Kong plugin page (reference above) discusses installing and configuring the plugin using URL calls with payloads. However, most k8s configuration i'm familiar with is via YAMLs (e.g., https://kubernetes.io/docs/concepts/services-networking/ingress/)
Are the Kong plugins also configurable via YAML? Some third party sites mention configurations such as this:
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: deploymentname187
config:
config.replace.uri: /
plugin: kong-plugin-url-rewrite
What is the best practice for Kong plugins -- URL calls or YAML application?