You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(init): init --with-opencost deploys OpenCost for precise Tier-2 cost
Make `kubectl tidy init` optionally install OpenCost into the cluster so scans
get precise allocated cost (spot/reserved/CUD discounts) out of the box, instead
of blended derived pricing — no separate OpenCost setup.
- Embed a minimal OpenCost manifest (namespace, SA, ClusterRole/Binding,
Deployment, Service on :9003 at opencost.opencost.svc — which kubetidy already
auto-detects for Tier 2). Prometheus endpoint is templated via a placeholder.
- `init --with-opencost` applies it; `--prometheus-url` points OpenCost at your
Prometheus (defaults to http://prometheus-server.monitoring.svc:80).
- `init --print --with-opencost` emits the manifests for GitOps instead.
- `uninstall --with-opencost` removes it (off by default, so a user's own
OpenCost is never touched); deleted before the operator, idempotently.
- Docs: README setup + Tier 2 section, ROADMAP (producer side of Tier 2),
CHANGELOG [Unreleased].
flags.BoolVar(&f.crdOnly, "crd-only", false, "install only the UsageProfile CRD, not the operator")
61
63
flags.BoolVar(&f.printOnly, "print", false, "print the manifests that would be applied, and exit")
62
64
flags.StringVar(&f.image, "image", "", "operator container image to deploy (required on a real cluster; the embedded default is a local kind-only tag)")
65
+
flags.BoolVar(&f.withOpenCost, "with-opencost", false, "also deploy OpenCost (needs Prometheus) so scans get precise Tier-2 cost out of the box")
0 commit comments