I’m new to Kubernetes and the concept of replicated ha storage like Longhorn intrigues me. However, after days of searching I cannot figure out if Longhorn is the right solution for me instead of my current NFS based solution.
Let’s say I want to host an nginx pod in Kubernetes for a regularly deployed website. How would we deploy the updated data into the storage?
Currently using docker with an nfs volume mount, we have a CI setup in Teamcity/Jenkins that generates all the content from code and once completed it will deploy the artifacts into nfs by copying the files directly into the nfs path. The new pages are immediately available.
How can we achieve similar with kubernetes + longhorn? Or is kubernetes + nfs the better option still for this scenario?
Looking into all the examples and guides on Longhorn so far seems more focused on kubectl exec’ing into the pod and manually modifying data, which doesn’t really demonstrate a real-world scenario.