Skip to main content

๐Ÿ”Œ 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.

ConnectionDestinationWhenHow to turn it offWithout network
Anonymous usage statshttps://api.kwatch.dev/telemetry/heartbeatShortly after startup, then at most once every 7 daystelemetry.enabled: false, or KWATCH_TELEMETRY=falseEach 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 checkThe GitHub API (latest kwatch release)At startup, then every 24 hoursupgrader.disableUpdateCheck: true, or SKIP_UPGRADE_CHECK=trueOne info log line ("failed to get latest release") per attempt. Nothing is sent to your providers
Pro license checkhttps://api.kwatch.devOnly with a license key: activation, then about once a dayRemove the key (license.key, KWATCH_LICENSE_KEY)See Pro without internet access
Your alert providersThe URLs and hosts you configure under alert.*On every alertConfigure only providers inside your networkFailed sends are retried and then dead-lettered, like any provider outage
Dead man's switch (Pro)heartbeatMonitor.urlOn its scheduleLeave heartbeatMonitor.url emptyPoint it at monitoring inside your network
Active probes (Pro)The targets you list in activeProbeMonitorOn their scheduleLeave activeProbeMonitor unsetProbes 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 dashboardLeave browser alerts offThe 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:

ProviderSetting
Email (an SMTP relay)alert.email.host, alert.email.port; tls: none for a trusted relay
Mattermostalert.mattermost.webhook
Rocket.Chatalert.rocketchat.webhook
Matrixalert.matrix.homeServer
Zulipalert.zulip.url
ntfyalert.ntfy.url (the default is the public https://ntfy.sh, so set it)
Gotifyalert.gotify.url
Signal (a signal-cli REST API)alert.signal.url
Home Assistantalert.homeassistant.url
GitLab, Gitea, GitHub Enterprisealert.gitlab.url, alert.gitea.url, alert.github.url
GoAlertalert.goalert.url
Alertaalert.alerta.url
Sensu Goalert.sensugo.url
Splunk HTTP Event Collectoralert.splunk.url
n8nalert.n8n.url
Custom webhookalert.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. /health shows the license component as waiting with license_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.", /health shows license as degraded with license_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.