Helm + ytt + argo

424 views Asked by At

I am a begginer developer. Please help to find my mistake I have a helm chart with ytt .yml files. I going to deploy the chart in argo. There are many links for helm+argo/kubernetes, but poor with helm+ytt+argo/kubernetes. My ytt files are in the templates. During experimnets with steps getting in internet I got error related to sintax helm-ytt and resolved for example like {{ to {{ `{{ . But after that does not deployed to. Please introduce some simple example for "helm+ytt+argo/kubernetes" or take steps for "helm chart +ytt+argo/kubernetes". I need that wery wery mach

2

There are 2 answers

0
Bernard Halas On

ArgoCD doesn't have a built-in ytt interpreter. You'd need to combine your deployment with kapp from carvel.dev.

I'd suggest to start simple, i.e. 1) ytt, then 2) ytt + kapp, afterwards 3) ytt + kapp + argocd, etc...

3
jpetazzo On

While ArgoCD doesn't have a built-in ytt interpreter, it has at least two ways to integrate with other interpreters like ytt:

  • a customizable plugins system,
  • a sidecar system.

The customizable plugins system is relatively straightforward, and there is a detailed ArgoCD + ytt integration example in the Carvel blog. However, according to ArgoCD documentation, it is due to be deprecated eventually.

It is supposed to be replaced by the sidecar system, which is also detailed in the same page of ArgoCD documentation.

It's worth keeping in mind that the integration isn't as smooth as a native integration would be; for instance, passing values requires a bit of extra work (you'd have to use an annotated values file instead of --data-values-file, for instance).

(Thanks to @crenshaw-dev for pointing out that the plugins system will be eventually deprecated!)