traefik: bound stalled connections and recover unhealthy ingress
This commit is contained in:
parent
6285cdb4d8
commit
e4cf47491c
@ -40,12 +40,13 @@ items:
|
||||
- --metrics.prometheus.addEntryPointsLabels=true
|
||||
- --metrics.prometheus.addRoutersLabels=true
|
||||
- --metrics.prometheus.addServicesLabels=true
|
||||
- --entrypoints.web.transport.respondingTimeouts.readTimeout=0s
|
||||
# Bound stalled reads and idle connections; allow five minutes for uploads.
|
||||
- --entrypoints.web.transport.respondingTimeouts.readTimeout=300s
|
||||
- --entrypoints.web.transport.respondingTimeouts.writeTimeout=0s
|
||||
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=0s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.readTimeout=0s
|
||||
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=180s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.readTimeout=300s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.writeTimeout=0s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=0s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=180s
|
||||
- --ping=true
|
||||
- --ping.entrypoint=health
|
||||
- --entrypoints.health.address=:8082
|
||||
@ -58,13 +59,33 @@ items:
|
||||
image: traefik:v3.3.3@sha256:19884a9d0b922b321c9cff54cbfe43f3169893041b8dd4ea6100677afaddce46
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: traefik
|
||||
env:
|
||||
# Leave room for socket buffers and memory outside the Go heap.
|
||||
- name: GOMEMLIMIT
|
||||
value: 768MiB
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: health
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: health
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 6
|
||||
# A wedged process cannot use the normal five-minute drain window.
|
||||
terminationGracePeriodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ping
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user