How do I use kubernetes volumeMounts: mountPath and hostPath in helm charts?

2/3/2021

I understand volumeMounts: mountPath and hostPath in kubernetes are connected by there name in kubernetes. How can I do the same with helm charts ? Are there any simple examples or readme docs ?

I am trying to use nfs mounts to run containers and package it as an application using helm charts. Thanks

-- user15087554
kubernetes
kubernetes-helm
nfs

1 Answer

2/3/2021

Just have a look at bitnami/postgresql chart. They make use of statefulset and have a template for persistant volumes. In your case you should search for nfs csi provider in addition.

-- Michael Johann
Source: StackOverflow