Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-705

Kubernetes: liveness and readiness probes ignore the `quarkus.http.root-path` setting

XMLWordPrintable

      Regression issue

      Github - new- issue

      Quarkus version 1.11.0.Final

      When an application defines a `quarkus.http.root-path`,  k8s liveness and readiness probe path must follow this context path. 

      Expected behavior

      quarkus.http.root-path=api

       

      apiVersion: "apps/v1"
      kind: "Deployment"
      metadata:
        ...
        name: "http"
      spec:
        ...
        template:
          ...
          spec:
            containers:
            - ...
              livenessProbe:
                failureThreshold: 3
                httpGet:
                  path: "api/q/health/live"
                  port: 8080
                  scheme: "HTTP"
                ...
              ...
              readinessProbe:
                failureThreshold: 3
                httpGet:
                  path: "api/q//health/ready"
                  port: 8080
                  scheme: "HTTP"
                ...
      

       

      Current behavior

       

       

      apiVersion: "apps/v1"
      kind: "Deployment"
      metadata:
        ...
        name: "http"
      spec:
        ...
        template:
          ...
          spec:
            containers:
            - ...
              livenessProbe:
                failureThreshold: 3
                httpGet:
                  path: "q/health/live"
                  port: 8080
                  scheme: "HTTP"
                ...
              ...
              readinessProbe:
                failureThreshold: 3
                httpGet:
                  path: "q/health/ready"
                  port: 8080
                  scheme: "HTTP"
                ...
      

       

      So looks that we are missing the context path on the k8s yamls.

       

            gandrian Georgios Andrianakis
            rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: