We are using kong-ingress-controller v0.7 and kong v 1.4.2 in DBLess mode and have difficulties creating global plugins.
An example plugin that we are trying to create is the following:
apiVersion: configuration.konghq.com/v1 kind: KongPlugin metadata: name: cors namespace: dev labels: global: "true" config: origins: - "*" methods: - GET - PUT - POST - PATCH - DELETE headers: - Accept - Accept-Version - Content-Length - Content-MD5 - Content-Type - Date - X-Auth-Token - Authorization - apikey - X-Request-ID - Consent-ID exposed_headers: - X-Auth-Token - Content-Disposition credentials: false max_age: 3600 plugin: cors
When I then try to verify the plugin through kongs admin api
curl -k https://localhost:8444/plugins it has not been created.
The only thing I can see in the logs that are related to this plugin is a deprecation warning:
plugins.lua:174 DEPRECATED: /plugins/schema/:name endpoint is deprecated, please use /schemas/plugins/:name instead., client: 127.0.0.1, server: kong_admin, request: "GET /plugins/schema/cors HTTP/2.0", host: "localhost:8444"
So my question is what am I doing wrong here?