You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ps-19 (via GitHub)" <gi...@apache.org> on 2023/03/30 07:03:59 UTC
[GitHub] [apisix-ingress-controller] ps-19 commented on issue #1712: request help: How configuration upstream timeout when use kubernetes ingress resource
ps-19 commented on issue #1712:
URL: https://github.com/apache/apisix-ingress-controller/issues/1712#issuecomment-1489798798
For configuring upstream timeout when use kubernetes ingress resource, you can use the timeout field in the ApisixUpstream resource.
```
apiVersion: VERSION
kind: ApisixUpstream
metadata:
name: httpbin
spec:
timeout:
connect: 1s // connection timeout
read: 1s // read timeout
```
Other method:
`healthCheck` field to configure active health check for your upstream service.
```
apiVersion:
kind: ApisixUpstream
metadata:
name: httpbin
spec:
timeout:
connect: `s
read: 1s
healthCheck:
active: true
port: PORT
interval: 1s
timeout: 1s
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org