cluster-network-observability
by startxfr
Configure the Network Observability operator and its FlowCollector to collect and visualize network flows
About this chart
Cluster Chart : Network Observability
Configure the Network Observability operator and its FlowCollector to collect and visualize network flows.
This chart is part of the cluster-xxx startx helm chart series that doesn't necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.
Requirements and guidelines
Read the startx helm-repository homepage for more information on how to use these resources.
The Network Observability operator (netobserv-operator, channel stable of the redhat-operators catalog) is installed
in the openshift-netobserv-operator namespace and watches the whole cluster. It is driven by a single cluster-scoped
FlowCollector named cluster whose spec.namespace (default netobserv) receives the flow processor and the console
plugin. The operator creates this namespace when it does not exist and runs the eBPF agents in netobserv-privileged.
The cluster must use the OVN-Kubernetes network plugin.
- Deployment model:
Service(operator default) runs the processor as a scalable Deployment,Directpairs a processor DaemonSet with the agents through the host network (small clusters below 15 nodes) andKafkabuffers the flows in a Kafka topic (large clusters). The Kafka cluster and its topic must exist, see the cluster-kafka chart. - Loki: the raw flows are stored in Loki only when
flowcollector.loki.enabledistrue. Deploy a dedicated LokiStack with the cluster-loki chart usinglokistack.tenants.mode: openshift-network(a LokiStack must not be shared with the OpenShift Logging stack). The operator manages itself thenetobserv-loki-writerClusterRoleBinding of the processor, no manual binding is needed. Non-admin users need thenetobserv-loki-readercluster role (andnetobserv-metrics-reader) to see the flows of their projects. When the LokiStack lives in another namespace than the FlowCollector, enable thelokiRbacblock so that the operator can read the LokiStack certificates. - eBPF features:
DNSTracking,FlowRTT,PacketTranslation,IPSecandTLSTrackingrun with the default capabilities whilePacketDrop,NetworkEventsandUDNMappingrequireflowcollector.agent.privileged: true. - Infra nodes:
flowcollector.infra_enabledplaces the processor and the console plugin on the infra nodes. The eBPF agents are never constrained (they must run on every node) and the processor is not constrained in theDirectmodel.
Sizing
Sampling (flowcollector.agent.sampling, default 50) is the main cost driver: 1 means every packet is sampled, which
multiplies the CPU and memory usage of the agents and processors and the volume stored in Loki. Red Hat measured about
1.35 CPU and 16 GB of memory for a 25-node cluster with every feature enabled at sampling 50 (1.82 CPU and 22 GB at
sampling 1), and about 5.4 CPU and 63 GB for a 250-node cluster (12 CPU and 87 GB at sampling 1). Start from the default
and refine empirically. Each eBPF feature adds flows and labels, so enable only the needed ones. Clusters above 25 nodes
should use the Kafka model with more processor replicas (consumerReplicas 6 to 18) and a 1x.small or 1x.medium
LokiStack. Disabling Loki saves 20 to 65% of the memory footprint, the console plugin then relies on the Prometheus metrics
only (no raw flows table, no per-pod details).
Deploy this helm chart on openshift
1. Connect to your Openshift cluster
oc login -t <token> <cluster-url>
2. Install the repository
helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/
3. Get information about this chart
helm show chart startx/cluster-network-observability
4. Install this chart
Default values
Complete deployment of a project with the following characteristics:
- Deploy the FlowCollector CR (
cluster) with theServicedeployment model, eBPF sampling 50, the console plugin enabled and Loki disabled (Prometheus metrics only) - The operator subscription and namespace are managed separately via the
operatorandprojectsub-charts (both disabled by default)
# base configuration running default configuration
helm install cluster-network-observability startx/cluster-network-observability --set flowcollector.enabled=true
Full deployment with operator and project
Enable the operator subscription and project namespace alongside the FlowCollector CR:
helm install cluster-network-observability startx/cluster-network-observability \
--set project.enabled=true \
--set operator.enabled=true \
--set flowcollector.enabled=true
Deployment with Loki storage
Store the raw flows in the loki LokiStack of the netobserv namespace (deployed with the cluster-loki chart and the
openshift-network tenant mode):
helm install cluster-network-observability startx/cluster-network-observability \
--set flowcollector.enabled=true \
--set flowcollector.loki.enabled=true \
--set flowcollector.loki.lokiStack.name=loki \
--set flowcollector.loki.lokiStack.namespace=netobserv
Other available values
- startx : Network Observability operator with full STARTX context, infra nodes placement (see values-startx.yaml)
- startx_noinfra : Network Observability operator with full STARTX context, without infra nodes placement (see values-startx_noinfra.yaml)
helm install cluster-network-observability startx/cluster-network-observability -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-network-observability/values-startx.yaml
Values files
Example values files shipped with the chart, to use with helm install -f <file> :
- startx : context
startx/default/infra; againstvalues.yaml: differ on 18 keys, by top-level key:project(6),operator(5),context(4),flowcollector(3) (see values-startx.yaml) - startx_noinfra : context
startx/default/infra; againstvalues-startx.yaml: differ onflowcollector.infra_enabled(true → false),operator.subscription.operator.config.infra(true → false) (see values-startx_noinfra.yaml) examples/argocd/: 5 example manifest(s) (see the ArgoCD or usage sections)
helm install cluster-network-observability startx/cluster-network-observability -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-network-observability/values-startx.yaml
Values dictionary
context values dictionary
| Key | Default | Description |
|---|---|---|
| context.scope | myscope | Name of the global scope for this application |
| context.cluster | default | Name of the cluster running this application |
| context.environment | myenv | Name of the environment (dev, factory, preprod, prod) |
| context.component | mycomponent | Component name of this application |
| context.app | default-netobserv | Application name |
| context.version | 2.0.0 | Version name of this application |
flowcollector values dictionary
| Key | Default | Description |
|---|---|---|
| flowcollector.enabled | false | Enable the creation of the FlowCollector CR (cluster-scoped, a single FlowCollector is allowed per cluster) |
| flowcollector.hooked | false | Deploy as a Helm/ArgoCD post-sync hook |
| flowcollector.name | cluster | Name of the FlowCollector (must be cluster for the operator to reconcile it) |
| flowcollector.namespace | netobserv | Namespace of the netobserv components (created by the operator, agents run in <namespace>-privileged, immutable) |
| flowcollector.deploymentModel | Service | Flow processing deployment model: Service, Direct (small clusters) or Kafka (large clusters, requires the kafka block) |
| flowcollector.infra_enabled | false | Place the processor (except in the Direct model) and the console plugin on the infra nodes |
| flowcollector.networkPolicy.enabled | true | Deploy the network policies isolating the netobserv components |
| flowcollector.networkPolicy.additionalNamespaces | [] | Additional namespaces allowed to connect to the netobserv namespace |
| flowcollector.agent.sampling | 50 | Sampling interval of the eBPF probe (1 samples every packet) |
| flowcollector.agent.privileged | false | Run the eBPF agents as privileged (required by PacketDrop, NetworkEvents, UDNMapping and SR-IOV interfaces) |
| flowcollector.agent.features | [] | eBPF features: PacketDrop, DNSTracking, FlowRTT, NetworkEvents, PacketTranslation, EbpfManager, UDNMapping, IPSec, TLSTracking |
| flowcollector.agent.resources | {} | Compute resources of the eBPF agent container (raw map, empty keeps the operator defaults) |
| flowcollector.processor.logTypes | Flows | Record types to generate: Flows, Conversations, EndedConversations or All |
| flowcollector.processor.consumerReplicas | 0 | Processor replicas in the Service and Kafka models (0 keeps the operator default of 3) |
| flowcollector.processor.metrics.includeList | [] | Prometheus metrics to generate without the netobserv_ prefix (raw list, empty keeps the operator default list) |
| flowcollector.processor.resources | {} | Compute resources of the processor container (raw map, empty keeps the operator defaults) |
| flowcollector.loki.enabled | false | Store the raw flows in Loki |
| flowcollector.loki.mode | LokiStack | Loki installation mode: LokiStack, Monolithic, Microservices or Manual |
| flowcollector.loki.lokiStack.name | loki | Name of the LokiStack CR (tenants mode openshift-network) |
| flowcollector.loki.lokiStack.namespace | netobserv | Namespace of the LokiStack CR (default is the flowcollector namespace) |
| flowcollector.loki.extraSpec | {} | Additional spec.loki fields appended as is (raw map): URLs of the other modes, timeouts, batch sizes |
| flowcollector.consolePlugin.enabled | true | Deploy the Network Traffic console plugin |
| flowcollector.consolePlugin.quickFilters | [] | Quick filter presets of the console plugin (raw list, empty keeps the operator defaults) |
| flowcollector.kafka | {} | Kafka connection rendered as spec.kafka when the model is Kafka (address, topic, tls, sasl) |
| flowcollector.exporters |
Deploy cluster-network-observability with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-network-observability on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcluster-network-observability is pinned at v21.3.418 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply