Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kong Gateway Admin API configuration in GKE #7584

Closed
2 tasks done
Xueyi-Chen-David opened this issue Jun 26, 2024 · 1 comment · Fixed by #7586
Closed
2 tasks done

Kong Gateway Admin API configuration in GKE #7584

Xueyi-Chen-David opened this issue Jun 26, 2024 · 1 comment · Fixed by #7586
Assignees
Labels
team-k8s Kubernetes task tracking (including KIC,KGO)

Comments

@Xueyi-Chen-David
Copy link

Xueyi-Chen-David commented Jun 26, 2024

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

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations
@lena-larionova lena-larionova added the team-k8s Kubernetes task tracking (including KIC,KGO) label Jun 27, 2024
@tao12345666333
Copy link
Member

Thank you for your report. Let me take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-k8s Kubernetes task tracking (including KIC,KGO)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants