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>
31 lines
878 B
YAML
31 lines
878 B
YAML
{{- if (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PodMonitor") }}
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
name: cluster-map
|
|
namespace: d8-cluster-map
|
|
{{- include "helm_lib_module_labels" (list . (dict "app" "cluster-map" "prometheus" "main")) | nindent 2 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: cluster-map
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
scheme: http
|
|
path: /metrics
|
|
relabelings:
|
|
- regex: endpoint|namespace|pod|service
|
|
action: labeldrop
|
|
- targetLabel: job
|
|
replacement: cluster-map
|
|
- sourceLabels: [__meta_kubernetes_pod_node_name]
|
|
targetLabel: node
|
|
- targetLabel: tier
|
|
replacement: cluster
|
|
- sourceLabels: [__meta_kubernetes_pod_ready]
|
|
regex: "true"
|
|
action: keep
|
|
{{- end }}
|
|
{{- include "helm_lib_prometheus_rules" (list . "d8-cluster-map") }}
|