In Kubernetes, you can create a volume to mount into a with hostpath.
This hostPath should provide a directory on the node running the pod. It's useful when you are working in development environments using minikube, we use this hostPath to sync code (per example)
...
volumes:
- name: source
hostPath:
path: /Users/fermin/project/wopwop
...
That path could be different for each developer (path: /Users/<your-name)/project/wopwop).
My first approximation was a brute force method, replace with a shell script <WORK_DIR> by a ENV variable $WORK_DIR where its value could be like WORK_DIR=/Users/fermin/project
.
Any ideas to do this in a better way? Thanks.