about summary refs log tree commit diff
path: root/bundles/traefik/files/kube.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/traefik/files/kube.yaml')
-rw-r--r--bundles/traefik/files/kube.yaml19
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