Files
Виталий ЧефановandClaude Opus 5.5 4c5eb288cb v0.11.0: HTTP details on links where Cilium parses L7
Requests, response classes, p50/p95 latency and the busiest paths per link,
from Hubble L7 flows (method, path, status, latency only; headers are never
requested). The two inner legs of a proxied connection (Envoy -> pod, and the
pod's answers to the node on an ephemeral port) are no longer counted as
links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 02:13:10 +03:00

83 lines
1.6 KiB
Markdown

---
title: "The cluster-map module: examples"
---
## Enable the module for administrators
```yaml
apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
name: cluster-map
spec:
enabled: true
version: 1
settings:
auth:
allowedUserGroups:
- admins
```
The web interface opens at `cluster-map.<publicDomainTemplate>`.
## Collect traffic only while the map is in use
```yaml
spec:
settings:
traffic:
mode: OnDemand
onDemandIdleMinutes: 15
```
## Keep a day of traffic
```yaml
spec:
settings:
traffic:
retentionMinutes: 1440
```
Memory grows with retention; watch `cluster_map_traffic_tracked_tuples` and the `ClusterMapTrackedTuplesHigh` alert.
## A read-only map
```yaml
spec:
settings:
actions:
enabled: false
```
No action buttons. With `auth.visibility: Everything` as well, the user's token is no longer passed to the module.
## HTTP details for one service
This policy selects the pods of the `web` Deployment and sends port 8080 through Envoy without restricting anything: `enableDefaultDeny: false` keeps all other traffic allowed, and the empty `http` rule matches every request.
```yaml
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: http-visibility
namespace: shop
spec:
endpointSelector:
matchLabels:
app: web
enableDefaultDeny:
ingress: false
egress: false
ingress:
- toPorts:
- ports:
- port: "8080"
protocol: TCP
rules:
http:
- {}
```
Delete the policy to go back to L3/L4. Before applying it to a service, read the notes in [HTTP details](README.md#http-details).