Kyle-Cooley opened a new pull request #2527:
URL: https://github.com/apache/camel-k/pull/2527


   <!-- Description -->
   
   Addresses https://github.com/apache/camel-k/issues/2513. This change allows 
the scheme used for the liveness and readiness probes to be overridden to HTTPS 
when needed. The approach taken was minimalistic.
   
   Verified using this groovy script saved to /tmp/helloworld.groovy
   ```
   from('timer:tick?period=3000')
     .setBody().constant('Hello world from Camel K')
     .to('log:info')
   ```
   and an integration deployed with the following commands
   ```
   openssl req -x509 -newkey rsa:4096 -keyout /tmp/integration-key.pem -out 
/tmp/integration-cert.pem -days 365 -nodes
   
   kubectl create secret tls my-tls-secret --cert=/tmp/integration-cert.pem 
--key=/tmp/integration-key.pem
   
   kamel run \
     --property 
quarkus.http.ssl.certificate.file=/etc/camel/conf.d/_secrets/my-tls-secret/tls.crt
 \
     --property 
quarkus.http.ssl.certificate.key-file=/etc/camel/conf.d/_secrets/my-tls-secret/tls.key
 \
     --config secret:my-tls-secret \
     /tmp/helloworld.groovy \
     --trait container.port=8443 \
     --trait container.probes-enabled=true \
     --trait container.liveness-scheme=HTTPS \
     --trait container.readiness-scheme=HTTPS
   ```
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   Allow the scheme used for the liveness and readiness probes to be overridden
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to