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>
43 lines
924 B
Markdown
43 lines
924 B
Markdown
---
|
|
title: "Модуль cluster-map: примеры"
|
|
---
|
|
|
|
## Включить модуль для администраторов
|
|
|
|
```yaml
|
|
apiVersion: deckhouse.io/v1alpha1
|
|
kind: ModuleConfig
|
|
metadata:
|
|
name: cluster-map
|
|
spec:
|
|
enabled: true
|
|
version: 1
|
|
settings:
|
|
auth:
|
|
allowedUserGroups:
|
|
- admins
|
|
```
|
|
|
|
Веб-интерфейс открывается по адресу `cluster-map.<publicDomainTemplate>`.
|
|
|
|
## Собирать трафик только во время работы с картой
|
|
|
|
```yaml
|
|
spec:
|
|
settings:
|
|
traffic:
|
|
mode: OnDemand
|
|
onDemandIdleMinutes: 15
|
|
```
|
|
|
|
## Хранить трафик за сутки
|
|
|
|
```yaml
|
|
spec:
|
|
settings:
|
|
traffic:
|
|
retentionMinutes: 1440
|
|
```
|
|
|
|
Память растёт вместе с глубиной хранения — следите за `cluster_map_traffic_tracked_tuples` и алертом `ClusterMapTrackedTuplesHigh`.
|