clusterscope [flags]
| Flag | Default | Description |
|---|---|---|
-dir |
. |
Path to the cluster directory to visualize |
-tech |
flux |
Technology to parse: flux or argocd |
-out |
stdout | Output file path (.html) |
-root |
. |
Root directory: one cluster, a directory of clusters, or a repo tree (see Lab View) |
-config |
— | Several roots (repos) + per-directory cluster name / lab overrides, replaces -root (see Lab View) |
-lab |
default |
Lab name for clusters whose path does not contain clusters/<lab>/… |
-serve |
— | Start HTTP dashboard server (e.g. :8080) |
-live |
false |
Enrich graph with real-time status from the Kubernetes API |
-kubeconfig |
— | Path to default kubeconfig file |
-kubeconfig-dir |
— | Directory with one kubeconfig per cluster (see Live Mode) |
-kubeconfig-map |
— | YAML mapping cluster name → kubeconfig path |
-self-cluster |
— | Cluster clusterscope runs in (uses -kubeconfig / in-cluster) |
-probe |
false |
Probe every HTTPRoute URL on each live refresh (see Endpoint Inventory) |
-probe-timeout |
5s |
Per-URL probe timeout |
-refresh |
30 |
Live status refresh interval in seconds |
-repos-config |
— | Path to repos.yaml (git-sync Kubernetes mode) |
-diff |
false |
Compare two cluster directories and output a diff |
-base-dir |
— | Base cluster directory (used with -diff) |
-head-dir |
— | Head cluster directory (used with -diff) |
-format |
markdown |
Diff output format: markdown | json | html |
-preview-root |
— | PR head ref cluster files (used with -serve) |
clusterscope -dir ./clusters/prod
clusterscope -dir ./clusters/prod -out profile.htmlclusterscope -dir ./argocd/prod -tech argocd -out prod.htmlclusterscope -root ./clusters -out ./dist
# Generates: dist/index.html + dist/<cluster-name>.html per clusterclusterscope -serve :8080 -root ./clustersSee Serve Mode for details.
clusterscope -serve :8080 -root ./clusters -live -kubeconfig ~/.kube/prodSee Live Mode for details.
# Markdown (for PR comments)
clusterscope -diff -base-dir ./clusters/labul/vsphere/movie-scripts -head-dir ./pr/clusters/labul/vsphere/movie-scripts
# JSON
clusterscope -diff -base-dir ./base -head-dir ./head -format json
# HTML
clusterscope -diff -base-dir ./base -head-dir ./head -format html -out diff.htmlSee PR Preview for details.