关于k8s部署cors插件与实际线上配置不符

  1. 环境描述:
    使用 https://bit.ly/kong-ingress-dbless 的方式进行安装
    CORS的YAML 如下:
    apiVersion: configuration.konghq.com/v1
    kind: KongPlugin
    metadata:
    name: cors
    config:
    origins:
    • “*”
      methods:
    • GET
    • POST
    • OPTIONS
      headers:
    • Accept
    • Accept-Version
    • Content-Length
    • Content-MD5
    • Content-Type
    • Date
    • X-Auth-Token
      exposed_headers:
    • X-Auth-Token
      credentials: true
      max_age: 3600
      plugin: cors

在ingress应用插件:konghq.com/plugins: cors

线上应用该插件却显示为:
{
“created_at”: 1598324617,
“config”: {
“methods”: [
“GET”,
“HEAD”,
“PUT”,
“PATCH”,
“POST”,
“DELETE”,
“OPTIONS”,
“TRACE”,
“CONNECT”
],
“exposed_headers”: null,
“max_age”: null,
“headers”: null,
“origins”: null,
“credentials”: false,
“preflight_continue”: false
},
“id”: “1f0594e7-0a78-528b-94d7-44fad2440e28”,
“service”: null,
“enabled”: true,
“name”: “cors”,
“protocols”: [
“http”,
“https”
],
“consumer”: null,
“tags”: null,
“route”: {
“id”: “c3d5f9ae-a42c-5e28-b770-1a330a2db489”
}
}
无论如何更改config均无法对线上配置造成影响?暂未找到解决方法和问题定位,求解

Can you please ask your question in English?


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ