Kong / docs.konghq.com

🦍 Source code for docs.konghq.com website.
https://docs.konghq.com
MIT License
193 stars 578 forks source link

Kong Gateway Admin API configuration in GKE #7584

Closed Xueyi-Chen-David closed 4 days ago

Xueyi-Chen-David commented 4 days ago

Where is the problem?

https://docs.konghq.com/gateway/latest/install/kubernetes/admin/

What happened?

In the second step GKE "Configure the admin section in values-cp.yaml..." the configuration is show as following.

1 admin:
2  enabled: true
3 http:
4   enabled: true
5  tls:
6  enabled: false
7 annotations:
8  beta.cloud.google.com/backend-config='{"default":"kong-hc"}'
9 ingress:
10  enabled: true
11  hostname: admin.example.com
12  path: /
13  pathType: Prefix
14  annotations:
15    kubernetes.io/ingress.class: gce-internal

When updated it shows the error.

$ helm upgrade kong-cp kong/kong -n kong --values ./values-cp.yaml
coalesce.go:220: warning: cannot overwrite table with non table for kong.admin.annotations (map[])
coalesce.go:220: warning: cannot overwrite table with non table for kong.admin.annotations (map[])
Error: UPGRADE FAILED: template: kong/templates/service-kong-admin.yaml:11:4: executing "kong/templates/service-kong-admin.yaml" at <include "kong.service" $serviceConfig>: error calling include: template: kong/templates/_helpers.tpl:179:28: executing "kong.service" at <.annotations>: range can't iterate over beta.cloud.google.com/backend-config='{"default":"kong-hc"}'

What did you expect to happen?

The 8 line above should be modified to "beta.cloud.google.com/backend-config: '{"default":"kong-hc"}'", which remove equal sign to colon sign. Actually in my case, remove 14, 15 lines works for me, otherwise failed. Also, the next page (kong manager setting) is the same problem.

Code of Conduct and Community Expectations

tao12345666333 commented 4 days ago

Thank you for your report. Let me take a look