How do I enable a KongPlugin on a consumer using Ingress Controller? I am trying to set up Multiple Authentication which uses Anonymous Access.
I am unable to apply the Request Termination Plugin as a K8s crd on the anonymous consumer. I am able to do it using curl i.e. rest apis.
However, I wanted to know if I can have something like this and make it work?
apiVersion: configuration.konghq.com/v1 kind: KongConsumer metadata: name: consumer-anonymous username: anonymous_users --- apiVersion: configuration.konghq.com/v1 kind: KongPlugin metadata: name: test-request-terminator consumer_id: dd2c7d28-622e-11e9-aee5-005056912aa7 consumerRef: consumer-anonymous disabled: false config: status_code: 401 plugin: request-termination