Volumes between deployment replicas

6/20/2018

I have this issue: Two or more nodes on cluster and 5 deployment replicas, and I have to use one volume for them. For example I will add one file to first pod and can take it from another, and if my first pod will deleted, I still can take this data from second pod.

I tried kubernetes volumes types like hostPath, but it's didn't work.

I tried NFS but it didn't work. Because we have many instructions, but each of them not full and not correct! Can you please write full instruction, like for junior, ok - like for idiots? I never use NFS, Gluster, but in kubernetes docs information is too short about how to install it and connect to kubernetes.

Now I try using AWS EFS and kubernetes and the same story, a lot of general information, individual instructions, but not consistent. Why, it's so hard for you, explain how it works? I am in fire now, kubernetes documentation about base elements like deployment, services - ok, but about integrations, not basic volumes - awfully!

Maybe some one can help me with it?

-- Vitalii Honchar
amazon-web-services
efs
kubernetes
nfs
volumes

1 Answer

6/25/2018

AWS part: https://aws.amazon.com/getting-started/tutorials/create-network-file-system/

KUBERNETES part: https://github.com/kubernetes-incubator/external-storage/blob/master/aws/efs/deploy/manifest.yaml

Thanks for help.

-- Vitalii Honchar
Source: StackOverflow