halouprogramer opened a new issue, #5745: URL: https://github.com/apache/camel-k/issues/5745
### What happened? I want to add /etc/hosts for the pod on OpenShift. First, I want to modify the Knative Service directly. When I use the oc patch command: `oc patch --type=merge configuration.serving.knative.dev/demo-app --patch-file./Deployment.yaml` the result is an error: `Error from server (BadRequest): admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: must not set the field(s): spec.template.spec.hostAliases.` So, my application is created by Kamel. How can I configure and use Camel-K to add spec.template.spec.hostAliases ? ### Steps to reproduce Here is Deployment.yam spec: template: spec: hostAliases: - ip: xx.xx.xx.xx hostnames: - xxx.com ### Relevant log output _No response_ ### Camel K version Camel K Client Red Hat 1.10.1 -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org