Kubernetes gives you a consistent API for running applications, but it also asks you to describe what should run and how it should be configured. That description is usually written as YAML. As applications grow, teams often use Helm to manage reusable Kubernetes configuration and GitOps tools such as Argo CD to keep a cluster in sync with configuration stored in Git.
These ideas fit together, but they solve different problems. This post builds the picture from the ground up.
What Is a Kubernetes Manifest?
A Kubernetes manifest is a file that declares a Kubernetes resource and its desired configuration. Common resources include:
- Deployment: manages replicated application Pods and rolling updates.
- Service: gives a group of Pods a stable network address.
- ConfigMap: stores non-secret configuration.
- Secret: provides a Kubernetes API object for sensitive values (though how it is stored and protected depends on cluster configuration).
- Ingress: describes HTTP or HTTPS routing into the cluster, when an ingress controller is installed.
For example, this manifest asks Kubernetes to run three replicas of an application container:
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: default
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: nginx:1.27
ports:
- name: http
containerPort: 80
The top-level fields identify the API version and resource kind. metadata names the object, while spec describes the desired state. The Pod template says which container to run; the matching labels connect the Deployment’s selector to the Pods it creates.
Save the file as web.yaml, then submit it to the Kubernetes API with:
kubectl apply -f web.yaml
kubectl get deployment web
kubectl get pods -l app=web
kubectl apply sends the declaration to the API server. Kubernetes controllers then work continuously to make the observed cluster match the declared state. If a Pod exits, for example, the Deployment controller creates a replacement. A manifest is therefore not a script of one-time commands; it is a description Kubernetes can reconcile over time.
You can put multiple YAML documents in one file by separating them with ---, or keep each resource in a separate file. Either way, the manifest can be reviewed, versioned, and applied repeatedly.
What Is a Helm Chart?
A Helm chart packages Kubernetes resources into a reusable application definition. A chart typically contains:
- Templates for resources such as Deployments and Services.
- A values file with the chart’s default configuration.
- A Chart.yaml file with chart metadata and version information.
Instead of copying and editing the same Deployment for every environment, a chart can expose the differences as values. For example, one environment might use two replicas and another might use five, while both use the same chart template.
A simplified template might include:
spec:
replicas: {{ .Values.replicaCount }}
template:
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
The chart’s values.yaml supplies defaults:
replicaCount: 2
image:
repository: nginx
tag: "1.27"
Helm renders the templates using those values to produce ordinary Kubernetes resources. You can inspect the rendered output before applying it:
helm template web ./web-chart
To install or update the chart as a Helm release:
helm upgrade --install web ./web-chart \
--namespace web \
--create-namespace \
--values values-production.yaml
Helm tracks a release, so the same command can install it the first time and update it later. Helm is useful when an application has several related resources, when configuration needs to vary between environments, or when you want to consume a packaged chart maintained by another team or vendor.
Helm is a templating and release-management tool; it does not by itself decide how your team reviews changes or keeps Git and a live cluster aligned. Teams can run Helm commands manually or have another system manage the chart. GitOps is one way to organize that process.
What Is GitOps?
GitOps is an operating model in which Git holds the reviewed, versioned description of the desired state of an environment. An automated controller observes that source and a running system, then works to make them agree.
A typical application delivery flow looks like this:
- A developer changes application code and opens a pull request.
- Continuous integration (CI) runs tests, builds a container image, and publishes it with an identifiable tag.
- A change updates the deployment configuration in Git to reference that image tag.
- After review and merge, a GitOps controller detects the desired-state change and applies it to the cluster.
This separates building an artifact from deploying it. CI produces and publishes the image; the GitOps controller reads approved configuration and updates the cluster. Git history then gives the team a clear record of what configuration was intended and when it changed.
GitOps does not mean that every application must be installed from raw YAML. The desired state in Git can be plain manifests, a Helm chart with environment-specific values, or a combination of configuration tools supported by the controller.
Where Argo CD Fits
Argo CD is a GitOps continuous-delivery tool for Kubernetes. It runs in or alongside a cluster and watches configured Git repositories. An Argo CD Application connects a source (such as a repository path and revision) to a destination cluster and namespace. The source can be a directory of manifests or a Helm chart.
Argo CD compares the resources rendered from the source with the resources it finds in the cluster. Its interface reports whether an application is Synced (the live resources match the desired configuration) and Healthy (the resources are operating as expected). These are related but distinct: a Deployment may match Git while its Pods are failing readiness checks.
When the Git revision changes, Argo CD can either wait for an operator to press Sync or automatically apply the update, depending on the application’s policy. It continues to compare desired and live state afterward. If someone changes a managed resource directly in the cluster, Argo CD can report the difference as drift and, when configured to do so, restore the Git-defined state.
The loop is:
flowchart LR
Git[Git repository] -->|desired state| ArgoCD[Argo CD]
ArgoCD -->|apply changes| API[Kubernetes API]
API -->|creates and updates| Resources[Running resources]
Resources -->|observed state| ArgoCD
For Helm, Argo CD generally renders the chart using the configured values and applies the resulting resources. In this model, Git records the chart version and values that define the environment; Argo CD performs the ongoing delivery and comparison.
A Practical Repository Shape
A small repository might keep an application chart and its environment configuration together:
deploy/
web/
Chart.yaml
values.yaml
templates/
deployment.yaml
service.yaml
environments/
staging-values.yaml
production-values.yaml
An Argo CD Application can point at the chart and select the values for a specific environment. For larger systems, teams often separate reusable application definitions from environment-specific configuration, or use an app-of-apps pattern. Those are organizational choices; the essential part is that the path Argo CD watches describes the intended state for a particular destination.
Choosing the Right Tool
Use plain manifests when the application is small, the configuration is straightforward, and explicit YAML is easiest to understand. Use Helm when templates and values reduce repeated configuration, when you need a packaged application, or when you need a consistent way to configure multiple environments. Use Argo CD when you want a controller to deploy from Git, continuously report differences, and optionally correct drift.
They are commonly combined: Helm packages the Kubernetes resources, Git stores the chart configuration and image version, and Argo CD watches Git and reconciles the cluster. Keep secrets out of ordinary Git files unless they are protected with an appropriate encryption or secret-management workflow, and give the controller only the access it needs.
The useful mental model is simple: manifests describe resources, Helm helps parameterize and package them, and GitOps with Argo CD keeps a cluster aligned with the versioned configuration you approve.