This file provides guidance to coding agents when working with code in this repository.
- List Helm chart contents:
helm template <chart-path> - Install/Upgrade a chart:
helm upgrade --install <name> <chart-path> --namespace <ns> - Lint a chart:
helm lint <chart-path> - Validate Argo CD application:
argocd app get <app-name> - Sync Argo CD application:
argocd app sync <app-name> - Apply a kubectl manifest:
kubectl apply -f <file> - Delete a chart/namespace:
helm uninstall <name> --namespace <ns>orkubectl delete namespace <ns> - Terraform init & apply (if enabled):
terraform initthenterraform applywithinterraform/ - View logs:
kubectl logs -n <namespace> <pod>
- Root Argo CD application resides at
argocd/root/and targetsargocd/namespaces/. - Namespace-level applications in
argocd/namespaces/*then recursively manage child applications inargocd/apps/*. - Each application deploys resources in dedicated namespaces (e.g.,
cert-manager,longhorn-system,monitoring). - Helm charts under
helm/provide the infrastructure components. - Terraform configuration under
terraform/is a work‑in‑progress but defines the underlying infrastructure provider.
- Helm chart directories contain:
Chart.yaml,values.yaml,templates/. - Use
helm dependency updateinside a chart directory ifrequirements.yamlorChart.yamldependencies are defined. - Use
helm repo addto add remote chart repositories referenced in values.
- Argo CD resources are defined under
argocd/root/,argocd/namespaces/, andargocd/apps/. - Root points to namespace-level apps, and namespace-level apps point to app-level resources.
- Each app has a
specpointing to a Git repo and path. - Sync state can be checked with
argocd app list.
- The directory
terraform/containsprovider.tfwhich specifies a provider. - To apply, run
terraform init && terraform applyinside this directory.
- Some components (e.g., Longhorn) may require manual installation steps via Helm and kubectl; see
docs/SETUP.md. - Keep the cluster state separate from version control; use
secretsandsealed-secretsfor sensitive data.