From 0183d50b184738bf0d10688c11c024d2756d2b80 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 23 Feb 2026 14:15:16 +0100 Subject: traefik: healthcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/traefik/files/kube.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'bundles') diff --git a/bundles/traefik/files/kube.yaml b/bundles/traefik/files/kube.yaml index 87202fc..024bdca 100644 --- a/bundles/traefik/files/kube.yaml +++ b/bundles/traefik/files/kube.yaml @@ -22,6 +22,10 @@ spec: - --api.insecure=true - --metrics.prometheus=true - --metrics.prometheus.manualrouting=true + # healthcheck + - --ping=true + - --ping.entrypoint=traefik + - --ping.terminatingstatuscode=204 # providers - --providers.file.directory=/etc/traefik - --providers.file.watch=true @@ -67,18 +71,9 @@ spec: - containerPort: 9010 hostPort: 9010 protocol: TCP - - # TODO: investigate, not useful on it's own because: - # httpGet translates to a curl invocation inside the container, puts - # a requirement on the container - # https://github.com/containers/podman/blob/v4.8.3/pkg/specgen/generate/kube/kube.go#L647 - - # livenessProbe: - # httpGet: - # path: /ping # needs --ping=true - # port: 4000 - # initialDelaySeconds: 2 - # periodSeconds: 20 + livenessProbe: + exec: + command: ["wget", "-qO-", "http://localhost:4000/ping"] resources: limits: cpu: 1000m -- cgit 1.4.1