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


   It seems Knative relies on the port name to determine the protocol: 
https://github.com/knative/serving/pull/2539.
   
   Based on the code sample from 
https://knative.dev/docs/serving/samples/grpc-ping-go/, it seems the port name 
must be set to `h2c`.
   
   Could you try to set the port name using the _container_ trait, e.g.:
   
   ```
   $ kamel run -t container.port-name=h2c
   ```
   
   Also, mind that the container port may need be accessed using the Knative 
service mesh. I'm not sure accessing the port through the Kubernetes proxy 
actually works. 


-- 
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.

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


Reply via email to