example-voting-app
example-voting-app copied to clipboard
Update kube-deployment.yml
I'm curious about the usefulness of this PR. @kubilayceylan - can you provide some context as to why you're making this request? And I know it's been a while since you opened this.
The native k8s approach to persist data is through PVCs. Changing that to a hostPath
volume 1) assumes you have access to write/use /data
and 2) either removes the ability for the pod to be scheduled on another node or makes the assumption that /data
is a network mount shared by all nodes that can run the deployment. I don't think either are good assumptions to make (which is why PVCs became a thing).