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

Cannot modify timeout using KongIngress and Service annotation #1386

Closed
sergerad opened this issue Jun 2, 2021 · 1 comment
Closed

Cannot modify timeout using KongIngress and Service annotation #1386

sergerad opened this issue Jun 2, 2021 · 1 comment

Comments

@sergerad
Copy link
Contributor

sergerad commented Jun 2, 2021

I have tried following this issue to modify the default 60s timeout but nothing is changing.

Kong Ingress Controller I'm using is kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:1.2

Ingress is defined as such:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    konghq.com/https-redirect-status-code: "301"
    konghq.com/preserve-host: "false"
    konghq.com/protocols: https
    konghq.com/strip-path: "true"
    kubernetes.io/ingress.class: kong
    kubernetes.io/tls-acme: "true"
...

KongIngress is defined as such:

apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
  name: abc
proxy:
  protocol: http
  path: /
  connect_timeout: 600000
  retries: 3
  read_timeout: 600000
  write_timeout: 600000

The relevant service is defined as below:

apiVersion: v1
kind: Service
metadata:
  annotations:
    configuration.konghq.com: abc
...

All that the ingress controller logs show are this:

time="2021-06-02T04:46:16Z" level=info msg="syncing configuration" component=controller
time="2021-06-02T04:46:16Z" level=info msg="no configuration change, skipping sync to kong" component=controller

I have tried running /kong-ingress-controller --v 3 but the logs are the same.

Am I doing something wrong?

@sergerad sergerad changed the title Cannot modify timeout using KongIngress and Service annotationo Cannot modify timeout using KongIngress and Service annotation Jun 2, 2021
@sergerad
Copy link
Contributor Author

sergerad commented Jun 2, 2021

The correct service annotation was konghq.com/override: abc. Not configuration.konghq.com: abc as I expected based on the linked issue.

@sergerad sergerad closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant