Helm
Notes
Works like a wrapper around Kubernetes clusters. Has its own artifact repository, you can pull charts and change them similar to docker
Prefixing a file with
_
makes helm ignore the helper file
Charts
Values
Templates are basically the Kubernetes services and deployments.
{{ Release.Name }}
is basically Go templatingIf the values are empty their template value will be empty
You can create a
values.yaml
file and in that you can define dictionaries for making the namings easier:
In this case you can just say {{Values.repository}}
helm lint ./nginx-chart
is linting the chart same as Terraform does it
Functions
Same as Terraform functions: string, security, kubernetes, regex, etc.
Common string functions are:
upper
,quote
,replace x,y,z
,default
You can also use pipeline for combining functions, e.g.
{‹ • Values image.repository | upper | quote| shuffle }}
=> resulting in image: GN"XNI"
Links
Last updated
Was this helpful?