Package cluster-map as a Deckhouse module
Layout, build and templates follow deckhouse/modules-template; dmt lint passes with no findings (Go files are excluded from the Flant-only license-header rule, see .dmtlint.yaml). - module.yaml, openapi schemas with Russian docs, lib-helm templates: https modes, ingress class, publicDomainTemplate, node placement, priority class, PSS-restricted security context, VPA, PDB, Ingress plus Gateway API ListenerSet/HTTPRoute, DexAuthenticator. - module-sdk hooks: hubble CA from d8-cni-cilium (public certificate only), external_auth, copy_custom_certificate. - The app moves to images/cluster-map/src and is split into packages; traffic mode Continuous/OnDemand/Disabled and retention are module settings; graceful shutdown; Prometheus metrics and two alerts; frontend embedded, English and Russian, strict CSP. - Built with werf on Deckhouse's published base images; Makefile publishes the registry layout modules-actions uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
41f9b47556
commit
4518393ce1
@@ -0,0 +1,28 @@
|
||||
- name: d8.cluster-map
|
||||
rules:
|
||||
- alert: ClusterMapHubbleDisconnected
|
||||
expr: max by (pod) (cluster_map_hubble_stream_active == 1 and cluster_map_hubble_connected == 0)
|
||||
for: 15m
|
||||
labels:
|
||||
severity_level: "8"
|
||||
tier: cluster
|
||||
annotations:
|
||||
plk_markup_format: markdown
|
||||
plk_protocol_version: "1"
|
||||
summary: cluster-map has no flows from Hubble Relay.
|
||||
description: |
|
||||
The traffic layer of cluster-map has received no flows for 15 minutes while it is supposed to be collecting. The topology map still works; traffic windows go stale.
|
||||
|
||||
Check the pod log: `kubectl -n d8-cluster-map logs deploy/cluster-map`, and that hubble-relay is running: `kubectl -n d8-cni-cilium get pods -l app=hubble-relay`.
|
||||
- alert: ClusterMapTrackedTuplesHigh
|
||||
expr: max(cluster_map_traffic_tracked_tuples) > 2000000
|
||||
for: 30m
|
||||
labels:
|
||||
severity_level: "9"
|
||||
tier: cluster
|
||||
annotations:
|
||||
plk_markup_format: markdown
|
||||
plk_protocol_version: "1"
|
||||
summary: cluster-map keeps more than 2 million connection tuples.
|
||||
description: |
|
||||
Memory of the traffic collector grows with the number of distinct connections in the retention window. Lower `traffic.retentionMinutes` or switch `traffic.mode` to `OnDemand` in the `cluster-map` ModuleConfig.
|
||||
Reference in New Issue
Block a user