example-voting-app icon indicating copy to clipboard operation
example-voting-app copied to clipboard

Update kube-deployment.yml

Open kubilayceylan opened this issue 4 years ago • 1 comments

kubilayceylan avatar Apr 08 '20 08:04 kubilayceylan

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).

mikesir87 avatar Jan 30 '21 01:01 mikesir87