Docs
Install and configure
Fleetscope ships as one Helm chart, fleetscope-control-plane, on oci://ghcr.io/fleetscope-store/charts. The image and
the chart are public.
Requirements
- Kubernetes and Helm 3.
- A Mimir and a Loki the cluster can reach (an in-cluster service or an HTTPS address), with the tenants you want to watch.
- A way in from your browser: a Gateway API route (recommended), a LoadBalancer, or a port-forward to try it.
- Optional: Grafana, for the "Open in Grafana" button of every alert.
Install
helm upgrade --install fleetscope oci://ghcr.io/fleetscope-store/charts/fleetscope-control-plane \
--kube-context <context> --namespace fleetscope --create-namespace --version 0.11.0 \
-f my-values.yamlA minimal my-values.yaml:
publicURL: https://fleetscope.example.com # used in the links of the messages and for sign-in
admin:
email: [email protected] # the first owner; its password is generated
httpRoute:
enabled: true
parentRefs:
- name: my-gateway
namespace: gateway
sectionName: https
hostnames: [fleetscope.example.com]The password of the first owner:
kubectl --context <context> -n fleetscope get secret fleetscope-credentials \
-o jsonpath='{.data.admin-password}' | base64 -d; echoThe chart brings its own PostgreSQL (postgresql.enabled: true, with a persistent volume). To use your own, set
postgresql.enabled: false and database.url. For a whole single-company setup, copy
deploy/internal/control-plane.values.example.yaml.
Upgrading to a new version: run the same command with the new --version and the same values file.
First steps in the app
- Integrations → Mimir and Loki. Enter the address (a service and namespace inside the cluster, or a domain), an
optional bearer token, and the tenants (
X-Scope-OrgID) to read; Test connection checks it. - Integrations → Grafana (optional). The address of Grafana and, for each tenant, the UID of its data source; pasting an Explore address fills the UID in.
- Rules → Add recommended rules. Pick the tenants and the groups (servers, Kubernetes, MongoDB, Docker, logs, domains, Argo CD). Rules are added turned off: press Backtest, then turn on the ones that fit.
- Notifications → Add channel. Telegram (a bot token and a chat, optionally a topic), Slack or Google Chat (an incoming webhook). Send test checks it.
- Members. Add people by email, or let them sign in with Keycloak.
Sign-in
| Method | Values |
|---|---|
| Email and password | passwordLogin: true (default). Members get a temporary password from Settings → Members. |
oidc.google.existingSecret: a Secret with client-id and client-secret of an OAuth client whose redirect URI is https://<host>/api/v1/auth/oidc/google/callback. |
|
| Keycloak | oidc.keycloak.*, below. |
Keycloak
Everyone who signs in with Keycloak joins the one organisation, with a role taken from their groups at every sign-in.
In the realm, create a client:
- OpenID Connect, Client authentication on, Standard flow only, PKCE S256.
- Valid redirect URI:
https://<host>/api/v1/auth/oidc/keycloak/callback. - The groups in the ID token or userinfo: a client scope with a Group Membership mapper, claim
groups.
Store its credentials and point the chart at them:
kubectl -n fleetscope create secret generic fleetscope-keycloak \
--from-literal=client-id=fleetscope --from-literal=client-secret='<secret>'allowOrgCreation: false
orgName: Example
passwordLogin: bootstrap # only admin.email keeps a password, a way in when Keycloak is down
oidc:
keycloak:
issuerURL: https://sso.example.com/realms/example
existingSecret: fleetscope-keycloak
displayName: Example SSO
scopes: [openid, email, profile, groups]
roleMapping:
admin: [devops] # the highest role whose groups match wins
defaultRole: viewer # everyone else
caSecret: "" # a Secret with ca.crt when Keycloak uses a private CASigning out ends the Fleetscope session only; the Keycloak session stays.
Roles
| Role | Can |
|---|---|
| Owner | Everything, including owners |
| Admin | Rules, channels, silences, integrations, members, audit log |
| Member | Read everything, logs included; change nothing |
| Viewer | Findings and rules; with viewerReadAll: true, everything a member reads |
Other values
| Value | What it does |
|---|---|
notifications.timezone |
Time zone of the times in the messages (IANA name), UTC by default |
notifications.reminderSchedule, reminderMax |
Gaps between the reminders of a Critical alert, and how many |
notifications.groupWindow |
How long to wait to group the alerts of one rule into one message (30 s) |
notifications.logSummary |
Send the log lines of a pod after its alert (on) |
heartbeat.url |
A ping URL called every minute while Fleetscope works |
allowedEmailDomains |
Email domains an admin may add as members |
trustedProxies |
Proxies whose X-Forwarded-For is trusted, for the IP addresses in the audit log |
Every value is described in charts/control-plane/values.yaml.