๐ Air-gapped and offline clusters
Use this page when kwatch runs in a cluster with no internet access, or with outbound traffic limited to a proxy. It lists every connection kwatch makes outside the cluster and how to turn each one off, how to install from a private registry, and why Pro needs the license server.
- Community works fully offline, with no time limit. Without a license key kwatch makes no license call. Turn off the two checks that are on by default (telemetry and the update check), pick an alert provider you can reach inside your network, and kwatch sends only your alerts outside the cluster.
- Pro needs to reach the license server. The first activation and the
daily renewal go to
https://api.kwatch.dev. There is no offline license mode and no license file to renew by hand. A cluster that cannot reach the server keeps Pro for up to 7 days after the last successful check, then runs the Community edition. Alerts never stop. See Pro without internet access.
Every outbound connectionโ
Apart from the Kubernetes API server and the kubelets, these are all the
connections kwatch opens. The telemetry, the update check and the license
check go through kwatch's outbound HTTP client, so app.proxyURL and
app.caBundlePath apply to them, and they always verify TLS.
| Connection | Destination | When | How to turn it off | Without network |
|---|---|---|---|---|
| Anonymous usage stats | https://api.kwatch.dev/telemetry/heartbeat | Shortly after startup, then at most once every 7 days | telemetry.enabled: false, or KWATCH_TELEMETRY=false | Each attempt fails after at most 3 seconds and is retried after 1, 5, 15, 30 and then every 60 minutes, logged once, at info level; repeats of the same failure log only at verbosity 2. Monitoring is not affected |
| Update check | The GitHub API (latest kwatch release) | At startup, then every 24 hours | upgrader.disableUpdateCheck: true, or SKIP_UPGRADE_CHECK=true | One info log line ("failed to get latest release") per attempt. Nothing is sent to your providers |
| Pro license check | https://api.kwatch.dev | Only with a license key: activation, then about once a day | Remove the key (license.key, KWATCH_LICENSE_KEY) | See Pro without internet access |
| Your alert providers | The URLs and hosts you configure under alert.* | On every alert | Configure only providers inside your network | Failed sends are retried and then dead-lettered, like any provider outage |
| Dead man's switch (Pro) | heartbeatMonitor.url | On its schedule | Leave heartbeatMonitor.url empty | Point it at monitoring inside your network |
| Active probes (Pro) | The targets you list in activeProbeMonitor | On their schedule | Leave activeProbeMonitor unset | Probes reach in-cluster targets as usual |
| Dashboard browser alerts (Pro) | The browser's push service (Google, Mozilla, Apple or Microsoft) | Only after someone turns on Browser alerts in the dashboard | Leave browser alerts off | The push services are on the internet, so these notifications cannot arrive |
Nothing else leaves the cluster. Development builds and CI environments never send telemetry, and prerelease builds skip the update check. What each request carries is in Data and telemetry and in the configuration notes.
At startup kwatch logs adoption telemetry skipped with
reason="disabled" (or disabled_env) and update check disabled, so the
log shows that both are off.
Configuration for an offline clusterโ
With the Helm chart, put both switches under config: in your values (or in
the config.yaml of the Secret that configSecretName names, which
replaces config:):
config:
telemetry:
enabled: false
upgrader:
disableUpdateCheck: true
With your own config.yaml, set the same two keys, or set the environment
variables KWATCH_TELEMETRY=false and SKIP_UPGRADE_CHECK=true.
Install in a cluster with no internetโ
The kwatch.sh installer downloads release files from GitHub while it runs
and pulls the image from ghcr.io, and it has no offline mode. Use it on a
machine that can reach both. For a cluster that cannot, mirror the image and
install the Helm chart from your own registry. This is the one case where the
installer is not the path.
On a machine with internet access, first
verify the release, then copy the image and the chart.
The image is published for linux/amd64, linux/arm64, linux/arm/v7 and
linux/arm/v6; --all keeps every architecture:
VERSION=X.Y.Z
REGISTRY=registry.example.internal
skopeo copy --all \
docker://ghcr.io/abahmed/kwatch:v$VERSION \
docker://$REGISTRY/kwatch/kwatch:v$VERSION
helm repo add kwatch https://kwatch.dev/charts
helm pull kwatch/kwatch --version $VERSION
helm push kwatch-$VERSION.tgz oci://$REGISTRY/charts
The chart package is also at https://kwatch.dev/charts/kwatch-X.Y.Z.tgz.
If your network has no OCI registry for charts, carry the .tgz file
across and install from it directly.
Then point the chart at the mirror. If the registry needs credentials,
create a pull secret in the release namespace and name it in
imagePullSecrets:
image:
repository: registry.example.internal/kwatch/kwatch
# Empty uses the chart's appVersion; set it when you mirror another tag.
tag: ""
imagePullSecrets:
- name: registry-pull
config:
telemetry:
enabled: false
upgrader:
disableUpdateCheck: true
helm install kwatch oci://registry.example.internal/charts/kwatch \
--version X.Y.Z --namespace kwatch --create-namespace \
-f values-offline.yaml
The installer manifest, deploy/deploy.yaml, holds the same image reference
(ghcr.io/abahmed/kwatch:vX.Y.Z); change it to your mirror before you
apply the file.
Alert providers inside your networkโ
Any provider whose address you can set can point at a server inside your network. Private, loopback and in-cluster addresses are allowed; only cloud instance-metadata addresses are refused (see Providers). These providers take a server address and have a self-hosted version:
| Provider | Setting |
|---|---|
| Email (an SMTP relay) | alert.email.host, alert.email.port; tls: none for a trusted relay |
| Mattermost | alert.mattermost.webhook |
| Rocket.Chat | alert.rocketchat.webhook |
| Matrix | alert.matrix.homeServer |
| Zulip | alert.zulip.url |
| ntfy | alert.ntfy.url (the default is the public https://ntfy.sh, so set it) |
| Gotify | alert.gotify.url |
| Signal (a signal-cli REST API) | alert.signal.url |
| Home Assistant | alert.homeassistant.url |
| GitLab, Gitea, GitHub Enterprise | alert.gitlab.url, alert.gitea.url, alert.github.url |
| GoAlert | alert.goalert.url |
| Alerta | alert.alerta.url |
| Sensu Go | alert.sensugo.url |
| Splunk HTTP Event Collector | alert.splunk.url |
| n8n | alert.n8n.url |
| Custom webhook | alert.webhook.url |
The Community edition sends to one provider; when more than one is
configured, app.communityProvider picks it. With the chart's
NetworkPolicy on (networkPolicy.enabled), open a provider port other than
443 with networkPolicy.extraEgressPorts, for example [587] for SMTP.
Pro without internet accessโ
Pro needs the license server. The server binds each license to one cluster, and the regular check is how it knows the same key is not running on another cluster. A license that worked offline could not be checked that way. This is how licensing behaves:
- Verification is offline, activation is not. kwatch checks the license key and the activation lease against signing keys compiled into the binary, with no network call. But the lease itself comes only from the license server: without a first successful activation there is no lease, and Pro never starts.
- A key without a reachable server stays pending. At the first start
kwatch waits at most 10 seconds for the activation, then runs the
Community edition.
/healthshows thelicensecomponent aswaitingwithlicense_pending; this does not affect readiness. kwatch logs one warning ("license check with the license server failed") and retries after 1, 5, 15 and 30 minutes, then every hour. - A running Pro install keeps Pro for up to 7 days. Leases last 3 days
and are renewed about once a day; an expired lease has a 4 day grace
period. The lease is kept in the state file, so restarts do not shorten
this. When the lease expires, your providers get "the kwatch license
could not be renewed and is in its grace period until ...". When the
grace period ends, they get "kwatch Pro is disabled: ... kwatch continues
in the Community edition.",
/healthshowslicenseasdegradedwithlicense_expired, and kwatch rebuilds as Community in the same process. - Alerts never stop. Licensing never takes monitoring down. After the
fallback kwatch runs with Community's limits: Pro detections and features
stop, and alerts go to one provider (
app.communityProvider). - Pro comes back on its own. kwatch keeps retrying the server. The first renewal that succeeds after the network returns restores Pro, and your providers get "kwatch Pro is enabled."
- No offline key change. Activating a new key needs the license server. There is no license file to carry in.
Restricted egress instead of noneโ
If the cluster may reach the internet through a proxy, Pro works when the
proxy allows HTTPS to api.kwatch.dev. Set app.proxyURL to the proxy and,
if it re-signs TLS, app.caBundlePath to its CA bundle: the license call
always verifies TLS and ignores app.insecureSkipTLSVerify.
api.kwatch.dev has no fixed IP addresses, so allow it by host name at the
proxy rather than by address in a NetworkPolicy. The chart's NetworkPolicy
already opens port 443 when a license key is configured.
Related pagesโ
- General configuration: the
license,telemetry,upgraderandappsettings. - Production readiness
- RBAC and deployment security
- Data and telemetry