halkyonio / primaza-poc

Quarkus Primaza Application - POC
1 stars 7 forks source link

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://127.0.0.1:36973/apis/monitoring.coreos.com/v1/namespaces/app/servicemonitors. Message: Not Found. #480

Open cmoulliard opened 4 months ago

cmoulliard commented 4 months ago

Issue

The job testing Quarkus Super Heroes https://github.com/halkyonio/primaza-poc/actions/runs/8940641775/job/24559664909 fails due to this error

Error:  Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://127.0.0.1:36973/apis/monitoring.coreos.com/v1/namespaces/app/servicemonitors. Message: Not Found.
Error:      at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.requestFailure(OperationSupport.java:660)
Error:      at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.requestFailure(OperationSupport.java:640)
Error:      at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.assertResponseCode(OperationSupport.java:589)
Error:      at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.lambda$handleResponse$0(OperationSupport.java:549)

Ioannis Canellos: When this dep is present a ServiceMonitor will be included. I think that there is an an option to disable that if you dont have prometheus in your cluster.

Charles Moulliard: So something changed recently with latest quarkus releases as our job was working before. Thanks. We will check next Monday

// https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-heroes/pom.xml#L74C1-L77C18
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-micrometer-registry-prometheus</artifactId>
    </dependency>