Skip to content

Latest commit

 

History

History

examples

Examples

kustomize

An example project defined with kustomize.

$ helm x apply mypap example/kustomize --version 1.2.3

If you want to override some params in kustomization.yaml:

$ kubectl create ns mykustomizeapp
$ helm x apply myapp examples/kustomize --version 1.2.3 \
  -f examples/kustomize/values.yaml

You can even add helm chart tests to your kustomize app:

$ helm test myapp
RUNNING: myapp-test
PASSED: myapp-test

And please do not forget to clean things up before proceeding to other examples:

$ helm delete --purge myapp
$ kubectl delete ns mykustomizeapp

Note that the current kustomize example creates forever-crash-looping pods, because I had not put much effort. Please feel free to contribute a more serious, working example :)

manifests

An example project defined with a set of vanilla Kubernetes manifest files.

$ helm x apply myapp examples/manifests --version 1.2.3

If you're done, clean up by running:

$ helm delete --purge myapp

myinject

An example injector that just adds a YAML comment.

Use it like:

$ helm x apply myapp examples/manifests --version 1.2.3 \
  --injector 'examples/myinject,FILE'

If you're done, clean up by running:

$ helm delete --purge myapp