I am trying to use kubernetes as my default development environment. I've set up the cluster locally with docker.
My set up steps after having a kubernetes cluster running were:
cd cluster_config/app && docker build --tag=k8s_php_dev . && cd ../..
kubectl -s http://127.0.0.1:8080 create -f cluster_config/app/app.rc.yml
kubectl -s http://127.0.0.1:8080 create -f cluster_config/app/app.services.yml
I am trying to map a local directory as a volume inside my app pod so I can share dynamically the files in there between my local host and the pod, so i can develop, change the files; and dynamically update on the service.
I use a a volume with a hostPath. The pod, replication controller and service are created successfully but the pod do not share the directory not even have the file on the supposed on the mountPath.
What I'm doing wrong?