netobserv-operator

by NetObserv

Helm chartv2.0.2App 2.0.2-communityApache-2.0Verified publisher

Network Observability in Kubernetes based on eBPF.

About this chart

NetObserv Operator

NetObserv Operator is a Kubernetes operator for network observability. It deploys a monitoring pipeline that consists in:

  • An eBPF agent, that generates network flows from captured packets.
  • Flowlogs-pipeline, a component that collects, enriches and exports these flows.
  • A web console for flows visualization with powerful filtering options, a topology representation, a network health view, etc.

Flow data is then available in multiple ways, each optional:

  • As Prometheus metrics.
  • As raw flow logs stored in Loki.
  • As raw flow logs exported to a collector via Kafka, OpenTelemetry or IPFIX.

Getting Started

You can install the NetObserv Operator using Helm, or directly from sources.

[!TIP] NetObserv can be used in downstream products, which may provide their own documentation. If you are using such a product, please refer to that documentation instead:

Pre-requisite

The following architectures are supported: amd64, arm64, ppc64le and s390x.

NetObserv has a couple of dependencies that must be installed on your cluster:

  • Cert-manager / trust-manager
  • Prometheus
  • Loki

Cert-manager and Trust-manager have to be installed separately. For example, using helm:

helm repo add cert-manager https://charts.jetstack.io
helm install cert-manager -n cert-manager --create-namespace cert-manager/cert-manager --set crds.enabled=true
helm upgrade trust-manager oci://quay.io/jetstack/charts/trust-manager --install --namespace cert-manager --wait

If you don't want to use Cert-manager and Trust-manager, you need to provide certificates by other means: refer to TLS.md.

Prometheus and Loki can be installed separately, or as dependencies of NetObserv (see below).

Loki is not mandatory but improves the overall experience with NetObserv.

Install with Helm

[!TIP] See it also on ArtifactHub.

helm repo add netobserv https://netobserv.io/static/helm/ --force-update

# Standalone install, including dependencies:
helm install netobserv -n netobserv --create-namespace --set install.loki=true --set install.prom-stack=true netobserv/netobserv-operator

# OR minimal install (Prometheus/Loki must be installed separately)
helm install netobserv -n netobserv --create-namespace netobserv/netobserv-operator

To start generating network flows, you must then create a FlowCollector resource (full API reference) named cluster. A short FlowCollector should work:

cat <<EOF | kubectl apply -f -
apiVersion: flows.netobserv.io/v1beta2
kind: FlowCollector
metadata:
  name: cluster
spec:
  namespace: netobserv
  processor:
    service:
      tlsType: Auto-mTLS
  loki:
    mode: Monolithic
    monolithic:
      url: 'http://netobserv-loki.netobserv.svc.cluster.local.:3100/'
  prometheus:
    querier:
      mode: Manual
      manual:
        url: http://netobserv-prom-stack-prometheus.netobserv.svc.cluster.local.:9090/
        alertManager:
          url: http://netobserv-prom-stack-alertmanager.netobserv.svc.cluster.local.:9093/
EOF

A few remarks:

  • You can change the Prometheus and Loki URLs depending on your installation. This example works if you use the "standalone" installation described above, with install.loki=true and install.prom-stack=true. Check more configuration options for Prometheus and Loki.
  • Depending on the Kubernetes distribution and CNI, NetObserv may come secured by default with a built-in network policy. You can force installing it or not by setting the helm value operator.installNetworkPolicy=true/false. If the built-in policy does not work as intended, it is recommended to turn it off and create your own instead. NetObserv runs some highly privileged workloads, thus it is important to keep it as much isolated as possible. See NetworkPolicy.md for more details on how to create a policy.

To view the test console, you can port-forward 9001:

kubectl wait -n netobserv --timeout=60s --for condition=Available=True deployment netobserv-plugin
kubectl port-forward svc/netobserv-plugin 9001:9001 -n netobserv

Then open http://localhost:9001/ in your browser.

More information

Refer to the GitHub repository README for more information: https://github.com/netobserv/netobserv-operator/blob/main/README.md

Deploy netobserv-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has netobserv-operator 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetobserv-operator is pinned at v2.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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