Configuring volumes in Kubernetes
Volumes are handled very differently in Kubernetes compared to Apache Mesos. In fact, Kubernetes persistent volumes support Azure, vCloud, and AWS. Kubernetes also supports Ceph, Flocker, Gluster FS, and even Git. This extensive support opens up opportunities for storing your data on the cloud and also enables easy backups.
Note
To take a look at the complete set of supported volumes, go to http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes .
Getting ready
In this recipe, we will learn how to map the volume where our data files are stored in the geolocation microservice.
First, delete any deployments, replication controllers, port forwards, or services that you already have for geolocation. You can leave the
echoserver
container that we created earlier or delete it. It shouldn't really affect us. Also, always delete the service first and the replication controller afterward. If you try to delete the pod or container, it will be recreated by the replication...