diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-23 14:15:16 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-23 14:15:16 +0100 |
| commit | 0183d50b184738bf0d10688c11c024d2756d2b80 (patch) | |
| tree | 5d0aef5b9a4a9f0101626eb5d94309f6b961100c /bundles/traefik/files/kube.yaml | |
| parent | 1919fe9b5770fcda40c2c5c9eeef66dbaaa4099a (diff) | |
traefik: healthcheck
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/traefik/files/kube.yaml')
| -rw-r--r-- | bundles/traefik/files/kube.yaml | 19 |
1 files changed, 7 insertions, 12 deletions
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 |