Open rawlingsj opened 8 years ago
Host path volumes are only useful on single node clusters so if there's more than one node we should advise that PVs are required for persistence & point then to docs.
We should warn the user about lack of persistence & give them the option to use empty dir, but not use empty dir without their confirmation as that could lead to confused users when they lose state.
Yeah thats what I was suggesting with this:
I wonder if we have more than 1 node, we could also check to see if there's existing PVs available which suggests the user or a service has already set them. If not prompt to ask if they plan to create them and if not warn them about lack of persistence and default to EmptyDir?
I'll add that in then if we're all happy.
Then we're agreed! But don't default to empty dir without user agreeing to it is my point really.
By habit I just ran
gofabric8 deploy
on a new kubernetes cluster without the--no-pvc
and received the errors below. What's odd is the hostpath PVs were actually created though.I wonder if we have more than 1 node, we could also check to see if there's existing PVs available which suggests the user or a service has already set them. If not prompt to ask if they plan to create them and if not warn them about lack of persistence and default to EmptyDir?