--- 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.`. ## 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).