Kubernetes
The chart lives in huseyinbabal/charts. Its appVersion is the tag of the ghcr.io/huseyinbabal/cvedetector-{agent,api,ui} images.
What gets installed
Section titled “What gets installed”| Component | Kind | Notes |
|---|---|---|
| agent | Deployment, 1 replica | ClusterRole with get/list/watch on pods, ReplicaSets and Jobs only. No internet access needed. |
| api | Deployment | Stateless. Feed sync and migrations coordinate through PostgreSQL locks, so api.replicas can be raised. |
| ui | Deployment | nginx serving the static app. Passes only GET/HEAD on /api to the API. |
| postgresql | StatefulSet | Optional. postgres:18.6-alpine with an 8Gi PVC. The password is generated once and kept across upgrades. |
The agent’s token for the API is generated and kept in the cvedetector-ingest Secret.
Install
Section titled “Install”helm repo add huseyinbabal https://huseyinbabal.github.io/chartshelm install cvedetector huseyinbabal/cvedetector -n cvedetector --create-namespace \ --set agent.clusterName=prod-eu-1agent.clusterName is the name shown in the UI. Use lowercase letters, digits and -.
Use your own PostgreSQL
Section titled “Use your own PostgreSQL”kubectl -n cvedetector create secret generic cvedetector-db --from-literal=password=<password>helm install cvedetector huseyinbabal/cvedetector -n cvedetector --create-namespace \ --set postgresql.enabled=false \ --set externalDatabase.host=pg.example.com \ --set externalDatabase.existingSecret=cvedetector-dbexternalDatabase.sslmode defaults to require. The API creates its tables at startup. If the database isn’t reachable yet, it retries for 3 minutes.
Expose it
Section titled “Expose it”--set ingress.enabled=true --set ingress.host=cvedetector.example.com --set ingress.className=nginxThe ingress routes / to the UI and /api to the API. Agents in other clusters send their reports through it.
Upgrade
Section titled “Upgrade”helm repo updatehelm upgrade cvedetector huseyinbabal/cvedetector -n cvedetector --reuse-valuesThe database and the generated tokens are kept.
Uninstall
Section titled “Uninstall”helm uninstall cvedetector -n cvedetectorkubectl -n cvedetector delete pvc -l app.kubernetes.io/instance=cvedetector # history too