claudio4j commented on issue #4484:
URL: https://github.com/apache/camel-k/issues/4484#issuecomment-1599651699

   @milank78git you have knative installed and available in camel-k-operator 
namespace, in this case camel-k-operator creates a knative service deployment, 
for this reason there must be some knatve service webhook validation in place 
to actually validate the container yaml snippet. I am not familiar with 
knative, but this is definitely some knative validation going on.
   
   If you want to disable knative service you can use the knative service trait 
to disable it: `-t knative-service.enabled=false`
   
   I changed the pod template yaml to pass the validation webhook
   
   ```
   containers:
     - name: integration
       env:
         - name: TEST_VARIABLE
           value: "hello from the template"
       volumeMounts:
         - name: var-logs
           mountPath: /var/tmp
       ports:
       - containerPort: 12458
         protocol: TCP
     - name: sidecar
       image: busybox
       command: [ "/bin/sh" , "-c", "while true; do echo $(date -u) 'Content 
from the sidecar container' > /var/tmp/file.txt; sleep 1;done" ]
       volumeMounts:
         - name: var-logs
           mountPath: /var/tmp
   volumes:
     - name: var-logs
       emptyDir:
         sizeLimit: 10Mi
   ```


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