HTTP Listener
Radar listens on127.0.0.1:9280 by default, so an unauthenticated local
instance is reachable only from the same network namespace. localhost is
accepted as an equivalent spelling. Requests to this loopback-only,
unauthenticated listener must also use a loopback Host; Radar rejects other
hostnames so DNS rebinding cannot turn an untrusted site into a local client.
The reserved *.localhost family is accepted; arbitrary local DNS and
/etc/hosts aliases are not.
To put a non-loopback hostname or reverse proxy in front of Radar, enable Radar
authentication; do not switch to 0.0.0.0 merely to bypass this check.
To reach Radar through a VM, WSL, dev container, jump host, or another machine,
opt into a shared listener explicitly:
0.0.0.0. The loopback Host protection above does not
apply to a shared listener, and Origin checks alone do not stop DNS rebinding
there. Treat an unauthenticated shared listener as accessible to any browser
that can reach the network and do not expose it outside a fully trusted network.
The host local terminal is unavailable on a shared listener even if a client
sends a loopback Host value.
The Docker image and Helm chart set 0.0.0.0 explicitly because their HTTP
listener must be reachable through a published container port or Kubernetes
Service. Desktop Radar and temporary radar diagnose servers remain
loopback-only.
Desktop Window Behavior
On macOS, closing the Radar window hides the app rather than quitting it. The Dock icon stays; a Dock click, Cmd+Tab, or Radar → Show All brings the window back with the session intact. File → Close Window (Cmd+W) hides it the same way the close button does. To quit, use Radar → Quit Radar (Cmd+Q). Radar keeps running while hidden. That is the point - MCP clients stay connected across a window close - but it means a hidden Radar still:- serves its loopback HTTP and MCP endpoints, under your kubeconfig identity;
- holds watches open against the API server for every cached resource kind;
- holds the memory backing those caches.
Persistent Configuration
Radar stores configuration in two files under~/.radar/:
Config File (~/.radar/config.json)
Persistent defaults for CLI flags. CLI flags always override these values. Managed via the Settings dialog in the UI or PUT /api/config.
The PostgreSQL DSN is runtime-only - set it through the
RADAR_TIMELINE_POSTGRES_DSN environment variable. It is intentionally never written to config.json so credentials do not persist to disk in the settings file.
For declarative deployments, RADAR_COST_SOURCE, RADAR_KUBECOST_URL,
RADAR_KUBECOST_CLUSTER_ID, and RADAR_KUBECOST_API_KEY override these cost
source fields. When any is set, the source controls are read-only in Settings;
edit the deployment and restart Radar. RADAR_KUBECOST_URL does not carry an
API key over from the config file; set RADAR_KUBECOST_API_KEY explicitly when
the environment-managed endpoint requires one. The currency override remains separate.
Settings File (~/.radar/settings.json)
User preferences for the UI. Managed via the Settings dialog or PUT /api/settings.
Cluster Connection Precedence
Radar resolves configured sources first, then falls back to the same environment, in-cluster, and default-file sources askubectl:
The Settings values and their matching flags form one source pair. With no
explicit flags, Radar uses both saved values. Passing only
--kubeconfig
replaces saved directories; passing only --kubeconfig-dir replaces the saved
primary file. Passing both flags explicitly combines both sources.
For compatibility with existing directory-mode installations, directories
configured without a primary file suppress ambient KUBECONFIG. Radar reports
that suppression in startup logs and diagnostics.
KUBECONFIG vs In-Cluster Detection
When Radar runs inside a Kubernetes pod, Kubernetes automatically sets theKUBERNETES_SERVICE_HOST environment variable. This normally triggers in-cluster configuration using the pod’s service account credentials.
However, explicit kubeconfig takes precedence. If you set KUBECONFIG or pass --kubeconfig, Radar uses that instead of in-cluster config. Configured directories also prevent in-cluster detection. This allows you to:
- Run Radar inside a pod but connect to a different cluster
- Use specific credentials instead of the pod’s service account
- Test with a custom kubeconfig while developing inside a cluster
kubectl and follows the Kubernetes client-go precedence rules.
Multiple Kubeconfig Files
KUBECONFIG can contain multiple file paths (colon-separated on Linux/macOS,
semicolon-separated on Windows):
--kubeconfig-dir to load valid kubeconfig files from one or
more directories. Discovery is non-recursive:
current-context wins when it declares one;
otherwise Radar uses the first source in order that declares a current context.
Leading ~/ paths are expanded, and references to the same underlying file are
loaded once even when they use different absolute, relative, or symlink paths.
Directory membership is scanned at startup. Changes inside a file that was
already discovered, including added or removed contexts, are reflected while
Radar is running; deleting that file also removes its contexts. A brand-new file
added to a configured directory is discovered after Radar restarts. Directory
entries must resolve to regular files: symlinks to regular kubeconfigs are
accepted, while directories, sockets, pipes, and device files are ignored.
An unusable additional directory does not prevent a valid primary file from
loading. A configured primary source group that contains no usable contexts fails
initialization rather than silently connecting to a directory cluster. Desktop
Radar keeps its window open so the source can be repaired in Settings.
Context Switching
Radar supports switching between Kubernetes contexts at runtime through the UI. Click the context selector in the header to switch between available contexts. When running in-cluster (using the pod’s service account), context switching is disabled. Switching contexts in the UI never rewrites your kubeconfig -kubectl keeps pointing wherever it pointed before.
Expired credentials
If an active context’s credentials expire or are rejected, Radar disconnects cluster-backed work and retries automatically. After you re-authenticate, exec-based credentials are re-probed and static credentials are reloaded from kubeconfig on disk, so Radar can reconnect without a restart. Retries start after 30 seconds and back off to 5 minutes; a credential plugin that stops responding is retried less frequently.Startup Context
Which cluster Radar comes up on depends on how you launched it. The Desktop app reopens where you left off. The context selected at startup and every successful context switch are recorded aslastDesktopContext in ~/.radar/settings.json, and the next launch reconnects to it - the natural behaviour for a window you closed and reopened.
kubectl radar, radar, and radar diagnose --standalone start on the kubeconfig’s current-context, as kubectl would. A command typed right after kubectl config use-context staging runs against staging, and a cluster picked in the Desktop app days ago never redirects it. Terminal runs don’t record switches either, so nothing you do in one moves where the Desktop app reopens.
The separation is not a preference: the remembered cluster is written under a Desktop-scoped key that the CLI never reads, and there is no setting that opts the CLI in.
To stop the Desktop app reopening on the last cluster, turn off Reopen on the last used cluster in Settings → Connection, or set in ~/.radar/config.json:
- The remembered context records the kubeconfig file it came from, not just its name - the name alone is not a stable handle. With several kubeconfigs loaded, two files can define the same context name, and which one keeps the unqualified name depends on the order the files are read, so adding a file can hand that name to a different cluster.
- Radar reopens only on an exact match: the same context, in the same file. Anything else - the context renamed or deleted, the file moved or no longer loaded - opens the kubeconfig’s
current-contextinstead, and says so in Diagnostics. A same-named context in another file is not treated as evidence that it is the same cluster; losing the convenience costs a click, landing on the wrong cluster costs more. - If the remembered cluster is unreachable (VPN down, for instance), Radar reports the connection failure rather than silently connecting to a different cluster. Pick another cluster from the header.
- Clusters connected through CAPI are never remembered: their kubeconfig is a temporary file that no longer exists on the next run.
- Turning the memory off takes effect on the next Desktop start: it clears the remembered cluster as well as stopping new recording, so turning it back on later starts fresh rather than reopening a cluster you stopped using months ago.
Namespace Picker
The header has a namespace picker on the right. Pick a single namespace to focus the view, or All namespaces to see everything you have access to. Cluster-scoped resources (Nodes, Namespaces, PVs, StorageClasses) appear regardless of the pick if your RBAC permits them - they have no namespace to filter on. Namespace-restricted users without their own cluster-scoped RBAC won’t see cluster-scoped sections at all. The pick is a per-user view filter - it doesn’t change anything for other users sharing the same Radar instance. Locally, your pick is remembered per kubeconfig context across restarts. In shared (auth-enabled) deployments the pick lives for the session. Until you make a pick, local sessions default to the namespace set on the kubeconfig context (kubectl parity - the same namespacekubectl would use, including one set via kubectl config set-context or kubens). An explicit --namespace / --namespaces flag outranks the kubeconfig value, and contexts without either default to All namespaces. Once you pick namespaces or explicitly choose All namespaces, that choice sticks for the context and the kubeconfig value is no longer consulted.
If your account can list resources inside several namespaces but cannot list namespaces cluster-wide, start Radar with an explicit list:
--max-scope-candidates (default 20) - startup fails with a clear error rather than silently probing a subset.
When Radar starts with --namespace-scope, the picker controls the process-wide cache scope instead of just a view filter. Namespaced informer caches are pinned to one namespace while cluster-scoped resources remain cluster-wide. Local/no-auth sessions can switch the scoped namespace, which rebuilds the cache in place. Auth-enabled and Radar Cloud sessions lock the picker to the startup namespace so one user cannot reshape the shared backend cache for everyone.
Single namespace only. --namespace-scope pins the cache to exactly one namespace; scoping to several namespaces at once is not supported yet. Passing more than one (e.g. --namespace=a,b) fails at startup with a clear error rather than silently caching nothing. When scoped, the namespace picker becomes single-select, and a switch re-points the whole cache to the new namespace rather than adding to it.
Radar Cloud
Radar is free and fully functional without an account. A Cloud button in the header offers to connect the cluster to Radar Cloud - optional, and nothing else depends on it.
To connect a cluster from the command line, use
radar cloud install
(--hub-url for a self-hosted Hub).
radar cloud install and radar cloud status target one cluster, so they use
the configured primary kubeconfig and report configured directories they
ignore. With no configured source, they use the normal KUBECONFIG / default
kubeconfig loading rules. Directory-only configuration must add a primary
kubeconfig before these commands can run.
What Radar sends
Until you connect a cluster to Cloud, Radar makes two kinds of outbound request, both to Skyhook, neither containing cluster data:- Update check - to
releases.skyhook.io, with the Radar version, OS/arch, install method, whether it is running locally or in-cluster, and the installation timestamp when Radar can determine it. Radar caches the release result for one hour. Development builds are excluded. - Cloud dialog copy - only when you open the Cloud dialog, to fetch the
current terms shown in it. No identifiers are sent.
RADAR_CLOUD_FUNNEL=offstops this request from ever happening.
Related Documentation
- CLI reference - Commands and operator-facing flags
- In-Cluster Deployment - Deploy Radar inside your cluster with Helm
- Authentication & Authorization - Proxy and OIDC auth for shared deployments