Skip to content

feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390

Closed
5 of 5 issues completed

Description

@dan-petty

Problem

On 2026-10-08 the owner asked for Mattermost chat hosting and integrations. Nothing in the cluster delivers a notification to a person today. The one receiver that exists has never delivered one.

Checked on 2026-10-08:

  • release/v0.2.29 at 910b823;
  • the cluster, read-only (kubectl get and Prometheus and Loki queries between 02:30 and 04:35 UTC);
  • the upstream sources named below.

Notifications today

  • Alertmanager has no channel.
    • Critical and warning alerts route to receiver webhook. It reads its URL from Secret alertmanager-webhook (k8s/monitoring/prometheus-values.yaml:35-40, :56-61, :64-78). The file says "No channel is chosen yet".
    • kubectl -n monitoring get secret <masked-token> answers NotFound.
    • In the 7 days to 2026-10-08, alertmanager_notifications_total{integration="webhook"} rose by 65, and so did alertmanager_notifications_failed_total{integration="webhook"}. Every notification failed.
    • Alerts that fired in that week: NodeNotReady (critical), NodeRebooted and TargetDown.
    • AlertmanagerNotificationsFailing fires only once that Secret exists (prometheus-values.yaml:437-447), so none of these failures raised anything.
  • Grafana routes no alert. Every rule is a Prometheus rule. Grafana reads Alertmanager as a datasource with handleGrafanaManagedAlerts: false (k8s/monitoring/grafana-values.yaml:78-86). Alertmanager is the only router.
  • Argo CD sends nothing.
    • Its notifications controller is off (k8s/argocd/values.yaml:84-85).
    • Its metrics aren't scraped either: argocd_app_info has no series. Metrics for the rest of the platform #551 owns that scrape and the sync and health alerts.
  • The roadmap Service only counts its failures.

What upstream offers (read 2026-10-08)

  • The Mattermost Operator is how Mattermost runs on Kubernetes.
    • The mattermost-team-edition chart's README says "This helm chart is no longer supported" and points to the Operator (mattermost/mattermost-helm).
    • The mattermost-operator chart is at 1.0.5, with operator v1.25.4. The operator itself has reached v1.25.9.
    • Mattermost's "Deploy Mattermost on Kubernetes" page is badged "Available on Entry, Enterprise, and Enterprise Advanced plans". The Operator's default image is mattermost/mattermost-enterprise-edition (apis/mattermost/v1beta1/mattermost_utils.go:20). Team Edition runs on it by setting spec.image, which works but is outside Mattermost's documented Kubernetes support.
  • Mattermost v11 (October 2025) changed the free builds (docs "Removed and Deprecated Features"; forum post "Mattermost v11 Changes in Free Offerings"):
    • MySQL support ended, and PostgreSQL 14 or later is required.
    • Team Edition, the MIT-licensed build, lost GitLab SSO, its only SSO. Its user limit dropped from 1,000 to 250.
    • Playbooks stopped working on Team Edition.
    • The free Entry build has SSO, but it limits message history to 10,000 messages.
    • v11.7 is the current Extended Support Release, supported until 2027-05-15; v10.11's support ended on 2026-08-15. v12.0 is at rc3 (2026-10-05).
  • Team Edition serves no Prometheus metrics. Performance monitoring needs an Entry, Enterprise or Enterprise Advanced license (docs "Performance monitoring metrics").
  • An incoming webhook posts to its channel only when locked. By default the payload's channel field overrides the hook's channel, and the hook "can post to any public channel or private channel the incoming webhook creator is a member of". Ticking "Lock to this channel" when creating it pins the channel (docs "Incoming Webhooks").
  • Alertmanager v0.34.1, the running version, has a native mattermost_configs receiver. It reads its URL from a file (webhook_url_file) and was added in v0.30.0.
  • Argo CD v3.5.3 (chart 10.9.6) has a Mattermost service, which needs a bot token and channel IDs. It also has a generic webhook service.
  • CloudNativePG (CNCF) is at v1.30.1, with chart cloudnative-pg 0.29.1. Its backups need an object store or CSI volume snapshots, and local-path volumes give neither.

Acceptance criteria

This item is done when each child is closed:

Order:

Rules every child follows. They are decided here, so the children don't repeat them.

Key questions

Out of scope:

Strategic alignment

Proposed design

Problem statement

The cluster delivers no notification to a person. Alertmanager's webhook receiver has no destination, and every notification in the last week failed. Argo CD sends no deploy events. The roadmap Service's failures reach no one. This issue hosts Mattermost Team Edition on the cluster and wires its sources to post to its channels.

Acceptance criteria

Key questions

  • The Operator, or the Team Edition chart?: The Operator. The chart is unsupported. The Operator takes an existing database Secret and claim, sets SiteURL from its Ingress host, and rolls versions. (proposed)
  • Team Edition, or the Entry build?: Team Edition. Entry's 10,000-message limit counts every channel. Team Edition keeps all history under the MIT license. Its 250-user limit is far above one person's homelab. (proposed)
  • How do people sign in?: Local Mattermost accounts behind the Cloudflare Access application. Team Edition v11 has no SSO. Open registration is off. The owner creates the first account, which becomes the system admin. (proposed)
  • Alerts through Grafana as well?: No. Grafana manages no alert rules, so a Grafana contact point would receive nothing. (proposed) [sources: k8s/monitoring/grafana-values.yaml]
  • Mattermost's GitHub plugin for pull request and issue events?: No. The plugin is listed for Entry, Professional, Enterprise, and Enterprise Advanced plans, not Team Edition. It would also need a GitHub OAuth app and a webhook through a new Access bypass. (proposed)
  • Mobile app and push notifications?: Push notifications off. Browsers and the desktop app are the clients. A person checks the mobile app in feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391. (proposed)
  • Backups?: Later. Until then, the Namespace, database Cluster object, file claim, and Mattermost object carry Prune=false,Delete=false. Both volumes' PVs are set to Retain. (proposed)
  • Is a chat server inside the cluster it watches enough?: Yes for now, with the limit written in the guide. When the node running Mattermost or Alertmanager is down, no alert reaches the channel. A watchdog from outside the cluster is a later item. (proposed)

Open questions

Fit

Needs splitting into 4 items:

  1. feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391: Mattermost Team Edition under Argo CD from the Mattermost Operator on CloudNativePG at https://mattermost.
  2. feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392: Alertmanager posts critical and warning alerts to the alerts channel; a Service repo with all-failed rounds for an hour raises an alert
  3. feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393: Argo CD posts devops deploys and failed syncs to the deploys channel
  4. feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395: /roadmap slash command shows each repository's Service state

Suspected block

None.

Dependencies

None.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    scope/k8s
    scope/telemetry
    type/epic
    on Oct 8, 2026
  2. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. All 65 webhook notifications in the past week failed silently, but this is a homelab and the gap is a missing integration rather than an active outage.
    • Value: High. The cluster currently has zero working notification channels, so alerts, deploys, and release events are invisible to the operator.
    • Effort: High. It spans deploying Mattermost via the Operator with a database and tunnel, configuring Alertmanager routing, enabling Argo CD notifications, and wiring roadmap release events—multiple independent components.
  3. added
    type/feature
    and removed
    type/epic
    on Oct 8, 2026
  4. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Relabelled type/epic → type/feature. The roadmap's reprioritize job refuses every run while an open board item carries type/epic (_require_migrated, roadmap/reprioritize.py:982-1012), a guard meant for the release epics the board migration retired. With this item open, the v0.2.30 start after the v0.2.29 ship would be refused. This item stays the parent of #1391-#1395; #880 narrows the guard to release epics. Found by the 2026-10-08 backlog review.

  5. changed the title [-]feat(k8s): the homelab hosts mattermost, and the cluster's alerts, argo cd deploys and roadmap releases post to its channels[/-] [+]feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels[/+] on Oct 23, 2026
  6. dan-petty commented on Oct 26, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P1-High. The issue addresses critical notification gaps in the cluster that affect system observability and incident response.
    • Value: High. The changes provide essential communication channels for system alerts and deployment status to team members.
    • Effort: Medium. The work involves integrating with Mattermost, configuring alertmanager, and enabling Argo CD notifications which requires moderate configuration and testing.
    • Possible duplicate: feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392, which may ask for the same change. The model names Mattermost integration for alertmanager, argo cd notifications, and roadmap service failures as the change that both ask for. The candidate and item 1392 both ask for Mattermost integrations for alerts, Argo CD deploys, and roadmap service failures. A person closes one of the two if that is so.
  7. dan-petty commented on Oct 27, 2026

    @dan-petty
    OwnerAuthor

    Refine cannot set this item to Ready at cc34caa until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

  8. added
    priority/p1-high
    status/new
    effort/medium
    value/high
    on Oct 28, 2026
  9. removed
    status/new
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/k8sscope/telemetrytype/featurevalue/high

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions