1
votes

I have deployed a pod on a Kubernetes Cluster on GCP. I have used a Persistent volume using a PVC as the volume mount. I need to input data(.doc files) residing in Google Cloud Storage buckets into the the pod's data path.

How do I mount this external storage or injest the data into the pod?

And I require this this to be a live connection or for the injestion to happen at regular intervals.

2
I am confused. You can't currently mount GCS buckets as PV/PVCs. What are you trying to do –can you simplify your question? – Ahmet Alp Balkan
Yes, I want to mount a GCS bucket as a PV/PVC. – Ben Abey
you can't do it – Patrick W

2 Answers

3
votes

I found a way to mount google cloud storage buckets into Kubernetes- GCS Fuse has to be built into the image and then the cloud storage buckets can be mounted as directories. I referred to these links to implement this-

https://karlstoney.com/2017/03/01/fuse-mount-in-kubernetes/

https://github.com/maciekrb/gcs-fuse-sample

1
votes

As mentioned by Ahmet and Patrick, it is not possible to mount Google Cloud Storage (GCS) buckets as PV/PVCs at Google Kubernetes Engine (GKE).