Running ray programs from documentation on minikube fails

Hello, I have minikube cluster on my laptop and I am trying to run ray programs by following below documentation:
https://docs.ray.io/en/latest/cluster/kubernetes.html#ray-k8s-run

  1. ray/doc/kubernetes/example.py does not exist in my source code repository, I think have pulled the latest code changes.

  2. When I try to run the example script, I get the below error:

$ kubectl -n ray cp ray/doc/kubernetes/example_scripts/run_on_head.py example-cluster-ray-head-qcl67:/run_on_head.py

tar: run_on_head.py: Cannot open: Permission denied

tar: Exiting with failure status due to previous errors

command terminated with exit code 2

can you please help?

cc @ijrsvt Can you address his question?

It should work if you copy the file to the ray home directory on the head node:

example-cluster-ray-head-qcl67:/home/ray/run_on_head.py