astefanutti commented on issue #3877:
URL: https://github.com/apache/camel-k/issues/3877#issuecomment-1339009756

   Thanks a lot for the detailed report 👍🏼.
   
   The kubelet fails to call the health probe because it's configured to call 
the HTTP port.
   
   The _health_ trait as it stands tries to infer the health probe port 
configuration based on the hard-coded `http` named port of the integration 
container:
   
   
https://github.com/apache/camel-k/blob/d39467e770f7d0442ea30b7e55e87110c7266747/pkg/trait/health.go#L86
   
   It should be improved to lookup the named port `https` port when the scheme 
is set to `HTTPS`, and possibly have an new option for users to provide the 
heath probe port directly.
   
   In the meantime, it may be possible to use the _pod_ trait to configure the 
integration container directly, e.g., with the following `patch_probe.yaml` 
file:
   
   ```yaml
   containers:
     - name: integration
       readinessProbe:
         httpGet:
           sheme: HTTPS
           path: /q/health/ready
           port: 8443
   ```
   
   And running:
   
   ```
   $ kamel run --pod-template patch_probe.yaml ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to