roboll / helmfile

Deploy Kubernetes Helm Charts
MIT License
4.04k stars 566 forks source link

How to deal with simple kubernetes definitions that don't have a chart #1157

Open Vad1mo opened 4 years ago

Vad1mo commented 4 years ago

This is more of a questions. There are more and more CRDs in the wild nowdays and they all come with their own CRs that of course don't come with a Chart.

If I want to keep my helm/helmfile workflow what options do I have to use and parametrize vanilla kubernetes deployment descriptors?

This is what comes into my mind if I want to do that with helmfile

What options are also possible to accomplish the same goal?

mumoshu commented 4 years ago

@Vad1mo Hey! I believe your list is comprehensive.

For the last bullet point, have you ever checked out "helm-x"?

With that you can extend helm to install a "kustomization" as a ad-hoc chart:

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

where the example/kustomize directory would look like https://github.com/mumoshu/helm-x/tree/master/examples/kustomize

mumoshu commented 4 years ago

FYI, you can run helmfile with helm-x by just providing the path to the helm-x binary with helmfile --helm-binary path/to/helm-x apply. See https://github.com/roboll/helmfile/pull/673

evra commented 4 years ago

May be the https://github.com/helm/charts/tree/master/incubator/raw can help?

See helmfile example how to deploy raw kubernetes resource - https://github.com/cloudposse/helmfiles/blob/master/releases/oidc-role.yaml

mumoshu commented 4 years ago

Thanks. Yes, the raw chart does help. Actually - @Vad1mo has also mentioned about the raw chart in the beginning of this issue :)