Kubernetes version: v1.24.3
Installation method: kind
Host OS: Debian 11
I understand that it is not KNative forum, but I really need help, and I would appreciate if you point me in the right direction.
I need to read file from smb:// share within Knative function. Is it possible?
I tried to mount share with Volumes (PersistentVolume/PersistentVolumeClaim). But seems Knative services don’t support Volume functionality (supported volume types docs/knative-api-specification-1.0.md at 51b878d8ebb494e48cfa5f4214defe92e85eb491 · knative/docs · GitHub).
for: "service.yaml": error when patching "service.yaml": admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: Persistent volume claim support is disabled, but found persistent volume claim pvc-smb: Persistent volume write support is disabled, but found persistent volume claim pvc-smb that is not read-only: must not set the field(s): spec.template.spec.volumes.persistentVolumeClaim
I also executed mount command within pod container. But also received an error:
mount -t cifs "//IP/SHARE" "/data" -o "username=debian" Unable to apply new capability set.