<p>Up to now, Helm is the only package manager that I know for K8s. It can help deploy and manage k8s application dependencies seamlessly. Why are so many K8s applications still not adopting or prioritizing it?</p>
<p>I have used quite a few popular ones like Argo, Istio, etc. They seem to promote the default installation method to <code>$ kubectl apply -f &lt;http path to YAML config&gt;</code>. Some do support the Helm installation method but it is pushed further down below and in many cases lack docs or are outdated. A few don't even support Helm charts.</p>
<p>How do people actually configure, deploy and manage big K8s applications with layers upon layers of dependencies like usually seen in other platforms? Do they actually manage every dependency manually? If that is the case, the technical debt will be huge as a K8s admin needs to understand every detail of the config logic for every dependency in his application.</p>

Nolan Edric
<p>There are a several aspects to that question.</p>
<h1>Cluster Security</h1>
<p>Historically, the first one was security.</p>
<p>Prior Helm3, Helm did rely on some Tiller container, running in your cluster, some kind of cluster admin able to create resources on your behalf.</p>
<p>Back then, one of the main argument against Helm was Tiller, and its being a privileged target for any attacker trying to escalate its privileges.</p>
<p>As of Helm 3: Tiller is gone. This argument is no longer valid - though beware Helm 2 is not dead, I still encounter Tillers pods from time to time.</p>
<h1>Compatibility</h1>
<p>Helm Charts often won't work out of the box, depending on your cluster, and usually requires some patch.</p>
<p>A common issue would be charts trying to start privileged containers without any PodSecurityPolicy or SecurityContextConstraints configuration, resulting in containers not starting. Or more generally missing Pods or containers SecurityContexts, no way to customize them through existing Values, LoadBalancer Services when no cloud integration configured nor MetalLB available, ...</p>
<p>From experience, Charts tend to work great on Kubernetes with no RBAC, no security, ... Things could get &quot;complicated&quot;, depending on which options your cluster enforces.</p>
<h1>Quality</h1>
<p>Which leads us to another common issue: quality. Which has two facets: the quality of the Kubernetes configuration provided, how relevant it is, how does it fit the application you are packaging. And the quality of the container images you are relying on, packaging that application.</p>
<p>Best case, your Chart comes from the editor of the software you are trying to install. Usually, the container image is relatively well built.</p>
<p>But the editor may not have a lot of Kubernetes expertise: they could be missing resources allocations, affinities/anti-affinities/topology spread constraints, there could be some deployment strategy or rolling params that doesn't make sense, very often trying to bind on privileged ports when this could be avoided, ... Sometime they don't have much time to work on those topics, focusing on their product itself.</p>
<p>Historically, the first Charts I could try used to be written by some GitHub user, with no affiliation with the editor, and variable understanding of what they were doing in both writing Kubernetes configurations and Dockerfiles.</p>
<p>Regardless of editors involvement, I won't blame anyone in particular, but there are a wide variety of container images and Helm Charts, binding on privileged ports and running as root, with no reason other than &quot;that's how it works when you apt-get install&quot;. Chmod 777s. Stuff that may not work. Stuff that would, but I would question the security implications. Things that could be simplified, ...</p>
<h1>Support</h1>
<p>Last point to take under consideration, evaluating a Chart, would be how well maintained are its container images and Kubernetes configurations.</p>
<p>Can you find sources on a public CVS? How active is it, any outstanding bugs, are those fixed in a timely manner? Would you be able to contribute yourself, maybe, should anything bad show up on your setup?</p>
<h1>Conclusion</h1>
<p>Based on those aspects, and the requirements you have on your cluster (is this a test, a dev that should host CI, a production for a PCI-DSS bank, ...)  and the time you can spend setting it up: you may trust a given Helm Chart, or prefer building your own solution.</p>
<p>Although Helm architecture used to be the main blocker, prior Helm 3, nowadays the rational not to adopt a Chart usually relates to its quality.</p>
<p>My first grudge against Helm is the variable - and sometimes, very poor - quality of images and configurations. Which is not to say there aren't good or great Charts. But that's for you to evaluate, on case by case, in relation to your context.</p>
<p>As pointed in comments: Helm isn't always the definitive answer. You could use Kustomize. Kustomize can in turn install Helm Charts. Or not. You could apply plain-text files. You could consider ArgoCD applying configurations out of a Git repository. OpenShift has &quot;Templates&quot; (though it does not allow for lots of templating: in that regard, Helm is better)</p>
<p>If we are to consider alternatives, it depends on what you want to do. Considering that most of the time, I would deploy several objects, with relations to each other, ... the &quot;best&quot; way to do this, arguably, is an operator. You could write yours in Go, Ansible (operator-sdk), Java, Python (kopf), ... there are tons of libraries available. While Helm/Templates/Kustomize would just apply a bunch of configurations,
operators are state machines (wait for X to be up before creating Y).</p>
<hr />
<p>And ansering to your last question: how do people actually configure, deploy and manage big K8s applications with layers upon layers of dependencies?</p>
<p>Depends. There's no definitive answer to this.</p>
<p>I could tell you the customer I'm working with nowadays uses Terraform, with a custom provider that applies Ansible Playbooks, generating Kustomization files from some templates, in turn applying plaintext files or sometimes calling Helm Charts hosted on Artifactories. Those would sometime deploy Operators (written in java/go/python), which would in turn create their own objects, ...</p>
<p>You can do this however you want. As long as it's OK with your security department if you have one, usable by your devs, manageable by your ops, ...</p>
