I am just learning helm charts and want to slowly migrate my manifest to helm.
As far as I have understood, values.yaml is the way to get a chart customized. My current manifest contains PV's using the nfs-volumes like this:
spec:
containers:
- image: linuxserver/ddclient
imagePullPolicy: Always
name: ddclient
volumeMounts:
- mountPath: /config
name: ddclient-config
volumes:
- name: ddclient-config
nfs:
path: /home/main/ddclient
server: 10.0.0.101
How would I go about setting up (considering the example above) /home/main/ddclient in values.yaml ? Does anybody have tutorials or examples?
you can define a renderer function in your helper:
then in your chart:
and then in values, you can have:
For a very good base of the helm chart, you can use this skeleton.