func icon indicating copy to clipboard operation
func copied to clipboard

Trying to validate Native 'tweaked' install on Rancher Desktop K8s (v1.29.5stable) on Mac M1: functions deploy fails

Open stevef1uk opened this issue 1 year ago • 1 comments

I have manually deployed Istio & Native on my local cluster as the automated script did not work. All pods seem to be running & I was able to deploy ok a sample istio application.

I had to manually edit some Knative yaml files to change V1beta1 to v1alpha1 to get the yaml files (serving-core.yam & serving-crds.yaml) to deploy successfully so I am not sure of the state our my installation. I am actually trying to test Kserve which requires the above.

I have used the func command to create a go example and built it locally ok. When I try to deploy I am getting the following errors:

Error: deploy error. knative deployer failed to deploy the Knative Service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: must not set the field(s): spec.template.spec.containers[0].securityContext.allowPrivilegeEscalation, spec.template.spec.containers[0].securityContext.seccompProfile

I tried Googling and couldn't find anything on this issue. I adding the work arounds I used to use on Openshift without success:

oc adm policy add-scc-to-user anyuid -z default -n  knative-serving 
oc adm policy add-scc-to-user anyuid -z default -n kserve-test 

Any thoughts would be appreciated.

stevef1uk avatar Jun 19 '24 04:06 stevef1uk

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Sep 19 '24 01:09 github-actions[bot]

This is probably due to an out-of-date Knative installation or func binary. Try restarting your cluster with the latest Knative installation links from knative.dev, and the latest func binary from our releases, and please reopen this issue if you still see the error.

lkingland avatar Feb 28 '25 02:02 lkingland