Skip to main content

๐Ÿš€ Installation

One command, and it walks you through it.

Supported path: use kwatch.sh for installation, upgrades, configuration, and removal. It creates the Secret, applies the matching release resources, enables the namespace security labels, and verifies the workload posture. Do not apply deploy.yaml or config.yaml manually.

For the normal lifecycle, use the manager:

You want to...Use
Try kwatch with the fewest decisionsRun the installer
Need to inspect the generated resourcesRelease artifacts
Move from v0.10.xUpgrading to v1.0.0
Already use Helm?Already use Helm?

๐Ÿš€ Before you beginโ€‹

You need:

  • A supported Kubernetes cluster.
  • kubectl configured for that cluster.
  • curl for the manager.

Check access before installing:

kubectl cluster-info

The default installation runs one small Pod with its state on a 2Gi volume (set KWATCH_STORAGE=emptydir to skip the volume). The pod reads cluster resources through Kubernetes RBAC, and the manager applies the required permissions. TLS monitoring needs additional Secret access and is off by default. kwatch runs as one pod; there is no high availability in v1.

๐Ÿš€ Run the installerโ€‹

Run one command:

bash <(curl -fsSL https://kwatch.dev/kwatch.sh)

The manager will:

  1. Ask which Kubernetes cluster to manage.
  2. Check the selected cluster and your permissions.
  3. Ask where alerts should go.
  4. Store notification credentials in a Secret.
  5. Install the CRD and kwatch workload.
  6. Wait for kwatch to become ready.

Run the same command later to configure, upgrade, manage your license, check status, or uninstall. The manager is fully interactive: select the cluster first, then it detects the running kwatch version and shows only the actions valid for that state. Read the kwatch.sh manager guide for every menu option, legacy migration, recovery behavior, and advanced usage.

The release artifacts below are for inspection only. The supported lifecycle is through kwatch.sh; do not apply or delete the files directly.

๐Ÿ”‘ Add a Pro license (optional)โ€‹

Community needs no key. Pro is free during early access: get a key on your account page and choose License / Pro then Add or replace key in the manager. A fresh install also offers it at the end. For a scripted run, set KWATCH_LICENSE_KEY. See License.

๐Ÿ”Ž Release artifacts (inspection only)โ€‹

The repository contains the CRD, Deployment, RBAC, chart, and catalog files so that users can audit exactly what the manager applies. They are not a second supported installation path. Do not apply or delete these files directly: the manager owns namespace safety, Secret references, upgrades, rollback behavior, and ownership-aware cleanup.

Run the interactive manager again for the lifecycle of every manager-created installation. If a deployment must be customized beyond the manager's options, treat it as an unsupported fork and keep it separate from a kwatch.sh-managed release.

The main environment variables inside the workload are:

VariableDefaultPurpose
CONFIG_FILE/config/config.yamlConfig file path
POD_NAMESPACEdetected from the PodNamespace for persisted state
GOMEMLIMITbased on the resource limitSoft Go memory limit

โ“ Troubleshootingโ€‹

The pod is not readyโ€‹

kubectl describe pod -n kwatch -l app=kwatch
kubectl logs -n kwatch deployment/kwatch

Look for an invalid provider credential, a missing permission, or a Kubernetes API access problem.

Check the health endpointโ€‹

kubectl port-forward -n kwatch deployment/kwatch 8060:8060
curl http://localhost:8060/healthz
curl http://localhost:8060/readyz

/healthz should return a successful liveness response. /readyz returns a successful response only when the required state, sources, and informer caches are ready; a pod still restoring state is expected to be not ready. /availabilityz is an internal Deployment probe that lets a rolling update progress without claiming that the pod is monitoring-ready.

Change configuration safelyโ€‹

Run kwatch lint before applying a changed config. Use kwatch lint --check when you also want to test credentials for providers that support checks. See the configuration reference.

๐Ÿ“ฆ Already use Helm?โ€‹

The installer is the supported path and is always first. If you already manage your cluster with Helm, the chart is an alternative; see Upgrading for a short pointer.

Helm details: RBAC modes, values and Secret access

The chart repository is https://kwatch.dev/charts. The chart defaults to rbac.mode: least-privilege; pass --set rbac.mode=full to watch custom resources and kinds added later. Watching Secrets is on by default; set watch.secrets: false to remove all Secret access. Chart values are listed in the chart README. See RBAC and deployment security. Manage licenses only through the installer's License / Pro menu.