No KongPlugin or KongClusterPlugin was found

Hi there, I’ve an issue with a “no KongPlugin or KongClusterPlugin was found” message since I’ve upgraded (via helm) from 2.5 to 2.7 version (controller updated from 1.3 to 2.2).

Full message is :
ingress-controller time="2022-02-21T15:51:47Z" level=error msg="failed to fetch KongPlugin: no KongPlugin or KongClusterPlugin was found" kongplugin_name=jwt-validator kongplugin_namespace=default subsystem=prox y-cache-resolver

and KongClusterPlugin exists …

kubectl get kongclusterplugin jwt-validator -o yaml
  - exp
  run_on_preflight: true
  secret_is_base64: false
kind: KongClusterPlugin
  creationTimestamp: "2021-09-29T10:39:10Z"
  generation: 1
  name: jwt-validator
  resourceVersion: "41622460233"
  uid: 2affa9d8-19c4-44e9-b782-b74cdcb3cd88
plugin: jwt

Does anyone has an idea of why controller doesn’t see the plugin ?

best regards


This seems to be a custom plugin. I don’t think KIC is able to pickup custom plugins.

This is the standard jwt plugin JWT plugin | Kong Docs , jwt-validator is just the given name.

Solved, “global” annotation was missing…

  name: jwt-validator
  annotations: kong
    global: "false"