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

how to set proxy_connect_timeout for single service #354

Closed
xbazhen opened this issue Aug 12, 2019 · 10 comments
Closed

how to set proxy_connect_timeout for single service #354

xbazhen opened this issue Aug 12, 2019 · 10 comments

Comments

@xbazhen
Copy link

xbazhen commented Aug 12, 2019

I want to set some config for a service

    proxy_connect_timeout 900;
    proxy_read_timeout 900;
    proxy_send_timeout 900;

in kubernetes offical nginx-controller,I can set as:

kind: Ingress
apiVersion: extensions/v1beta1
metadata:
  annotations:
    nginx.ingress.kubernetes.io/proxy‑connect‑timeout: 900
    nginx.ingress.kubernetes.io/proxy‑read‑timeout: 900
    nginx.ingress.kubernetes.io/proxy‑send‑timeout: 900

Does kubernetes-ingress-controller and kong support this?
If yes,how to set?

@hbagdi
Copy link
Member

hbagdi commented Aug 12, 2019

No, Kong Ingress Controller doesn't support those annotations as they are specific to the Nginx Ingress Controller.

To do this using Kong, you need to use KognIngress resource:
https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/references/custom-resources.md#kongingress

Please see this guide on how to use KongIngress resource.

@xbazhen
Copy link
Author

xbazhen commented Aug 13, 2019

No, Kong Ingress Controller doesn't support those annotations as they are specific to the Nginx Ingress Controller.

To do this using Kong, you need to use KognIngress resource:
https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/references/custom-resources.md#kongingress

Please see this guide on how to use KongIngress resource.

Do you mean set like this in KongIngress?

proxy:
  connect_timeout: 10000
  read_timeout: 10000
  write_timeout: 10000

@hbagdi
Copy link
Member

hbagdi commented Aug 13, 2019

Do you mean set like this in KongIngress?

Yes.
And then associate the KongIngress resource with the Kubernetes service for which you want to set the timeout in Kong.

Please close the issue if your issue is resolved with this solution. Thanks!

@xbazhen
Copy link
Author

xbazhen commented Aug 14, 2019

Do you mean set like this in KongIngress?

Yes.
And then associate the KongIngress resource with the Kubernetes service for which you want to set the timeout in Kong.

Please close the issue if your issue is resolved with this solution. Thanks!

OK,I will do after debugged the 404 problem。

@xbazhen xbazhen closed this as completed Aug 14, 2019
@xbazhen
Copy link
Author

xbazhen commented Aug 14, 2019

The 404 problem might take a little longer, close it for now.

@vivianforzj
Copy link

@xbazhen Have you solved the problem? If you have, could you share your settings? I still cannot work it out.Thank you.

@hbagdi
Copy link
Member

hbagdi commented Nov 26, 2019

Please follow the following guide to override a specific configuration in Service in Kong:
https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/guides/using-kongingress-resource.md

@vivianforzj
Copy link

I use kong ingress according to the guide, and add the timeout settings, but it seems that the timout settings does not work as expected.

@hbagdi
Copy link
Member

hbagdi commented Nov 27, 2019

Can you please open a new Github issue with your problem?
Please mention all the configuration you have.

@vivianforzj
Copy link

@hbagdi I had already opened a new issue #472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants