network-observability

by tjungbauer

Helm chartv2.0.6Apache-2.0Verified publisher

Installs and configures OpenShift Network Observability Operator.

About this chart

network-observability

Description

Installs and configures OpenShift Network Observability Operator.

This Helm Chart is installing and configuring the Network Observability Operator. This operator requires some storage to make the logs persistent. This might be Loki (for example using an existing Loki or the Loki Operator) or Kafka. This charts currently supports the settings for Loki due to my lack of possibility to test with Kafka.

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.27

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (for example in the folder clusters/management-cluster/setup-network-observability)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/network-observability

Parameters

Values

General

KeyTypeDefaultDescription
netobserv.additionalAnnotationsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
netobserv.additionalLabelsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
netobserv.deploymentModelstringDirectDefines the desired type of deployment for flow processing. Possible values: Direct Kafka
netobserv.enabledboolfalseEnable Network Observability configuration? This will also create the reader/writer rolebanding for multi-tenancy
netobserv.namespaceobject{"create":true,"name":"netobserv"}Namespace where Network Observability FlowCollector shall be installed.
netobserv.namespace.createbooltrueCreate the namespace if it does not exist.
netobserv.namespace.namestringnetobservName of the namespace
netobserv.syncwaveint10Syncwave for the FlowCollector resource.

Agent

KeyTypeDefaultDescription
netobserv.agentobject{}Agent configuration for flows extraction
netobserv.agent.ebpfobject{}Settings related to the eBPF-based flow reporter.
netobserv.agent.ebpf.cacheActiveTimeoutstring5sActive timeout for cache. Is the max period during which the reporter aggregates flows before sending. Increasing cacheMaxFlows and cacheActiveTimeout can decrease the network traffic overhead and the CPU load, however you can expect higher memory consumption and an increased latency in the flow collection.
netobserv.agent.ebpf.cacheMaxFlowsint100000Maximum number of flows to cache. Is the max number of flows in an aggregate; when reached, the reporter sends the flows. Increasing cacheMaxFlows and cacheActiveTimeout can decrease the network traffic overhead and the CPU load, however you can expect higher memory consumption and an increased latency in the flow collection.
netobserv.agent.ebpf.excludeInterfaceslist['lo']Interfaces to exclude from the eBPF agent.
netobserv.agent.ebpf.featureslist[]Features to enable for the eBPF agent. Possible values: PacketDrop: Enable the packets drop flows logging feature. This feature requires mounting the kernel debug filesystem, so the eBPF agent pods must run as privileged. If the spec.agent.ebpf.privileged parameter is not set, an error is reported. DNSTracking: Enable the DNS tracking feature. FlowRTT: Enable flow latency (sRTT) extraction in the eBPF agent from TCP traffic. NetworkEvents: Enable the network events monitoring feature, such as correlating flows and network policies. This feature requires mounting the kernel debug filesystem, so the eBPF agent pods must run as privileged. It requires using the OVN-Kubernetes network plugin with the Observability feature. IMPORTANT: This feature is available as a Technology Preview. PacketTranslation: Enable enriching flows with packet translation information, such as Service NAT. EbpfManager: [Unsupported ()]. Use eBPF Manager to manage network observability eBPF programs. Pre-requisite: the eBPF Manager operator (or upstream bpfman operator) must be installed. UDNMapping: [Unsupported ()]. Enable interfaces mapping to User Defined Networks (UDN). This feature requires mounting the kernel debug filesystem, so the eBPF agent pods must run as privileged. It requires using the OVN-Kubernetes network plugin with the Observability feature.
netobserv.agent.ebpf.imagePullPolicystringIfNotPresentImage pull policy for the eBPF agent. Can either be: Always IfNotPresent Never
netobserv.agent.ebpf.interfaceslist[]Interfaces to include for the eBPF agent. If empty, the agent fetches all the interfaces
netobserv.agent.ebpf.kafkaBatchSizeint0Batch size for Kafka.
netobserv.agent.ebpf.logLevelstringinfoLog level for the eBPF agent. Can be: trace debug info warn error fatal panic
netobserv.agent.ebpf.metricsobject{}Defines the eBPF agent configuration regarding metrics.
netobserv.agent.ebpf.metrics.disableAlertslist[]Disable alerts for the eBPF agent. Possible values: NetObservDroppedFlows: which is triggered when the eBPF agent is missing packets or flows, such as when the BPF hashmap is busy or full, or the capacity limiter is being triggered.
netobserv.agent.ebpf.metrics.serverobject{}Metrics server endpoint configuration for the Prometheus scraper
netobserv.agent.ebpf.metrics.server.portint9400The metrics server HTTP port.
netobserv.agent.ebpf.metrics.server.tlsobject{}TLS configuration for the metrics server.
netobserv.agent.ebpf.metrics.server.tls.insecureSkipVerifyboolfalseSkip client-side verification of the provided certificate. If set to true, the providedCaFile field is ignored.
netobserv.agent.ebpf.metrics.server.tls.providedobject{}TLS configuration when type is set to Provided.
netobserv.agent.ebpf.metrics.server.tls.provided.certFilestring''Path to the certificate file name within the configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.provided.certKeystring''Path to the certificate private key within the configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.provided.namestring''The name of the secret or configmap containing the certificate and key files.
netobserv.agent.ebpf.metrics.server.tls.provided.namespacestring''Namespace of the configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.provided.typestring''The type for the certificate. Can either be configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.providedCaFileobject{}Reference to the CA file when type is set to Provided.
netobserv.agent.ebpf.metrics.server.tls.providedCaFile.filestring''File name within the config map or secret.
netobserv.agent.ebpf.metrics.server.tls.providedCaFile.namestring''The name of the secret or configmap containing the CA file.
netobserv.agent.ebpf.metrics.server.tls.providedCaFile.namespacestring''Namespace of the configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.providedCaFile.typestring''The type for the CA file. Can either be configmap or secret.
netobserv.agent.ebpf.metrics.server.tls.typestringDisabledSelect the type of TLS configuration for the metrics server. Possible values: Disabled: No TLS configuration is provided. Provided: Manually provide cert and key file Auto to use OpenShift auto generated certificate using annotations.
netobserv.agent.ebpf.privilegedboolfalseEnable privileged mode for the eBPF agent.
netobserv.agent.ebpf.resourcesobject{}Resources for the eBPF agent.
netobserv.agent.ebpf.samplingint50Sampling rate for the eBPF agent. Sampling rate of the flow reporter. 100 means one flow on 100 is sent. 0 or 1 means all flows are sampled.
netobserv.agent.typestringeBPFType of the agent.
netobserv.networkPolicyobject{"additionalNamespaces":[],"enable":false}NetworkPolicy defines ingress network policy settings for network observability components isolation.
netobserv.networkPolicy.additionalNamespaceslist[]A list of additional namespaces allowed to connect to the network observability namespace.
netobserv.networkPolicy.enableboolfalseDeploy network polices for the network observability components.

Console Plugin

KeyTypeDefaultDescription
netobserv.consolePluginobject{}Console Plugin configuration related to the OpenShift Console integration.
netobserv.consolePlugin.advancedobject{}Advanced Parameters for the Console Plugin
netobserv.consolePlugin.advanced.registerbooltrueAutomatically register the Console Plugin with the OpenShift Console
netobserv.consolePlugin.advanced.schedulingobject{"nodeSelector":{},"tolerations":[]}Set placement and tolerations for the consolePlugin
netobserv.consolePlugin.advanced.scheduling.nodeSelectorobject{}Set nodeSelector to place the consolePlugin on specific nodes nodeSelector: key: node-role.kubernetes.io/infra value: ''
netobserv.consolePlugin.advanced.scheduling.tolerationslist[]Set tolerations for the consolePlugin tolerations: [] - effect: NoSchedule key: node-role.kubernetes.io/infra operator: Equal value: reserved - effect: NoExecute key: node-role.kubernetes.io/infra operator: Equal value: reserved
netobserv.consolePlugin.autoscalerobject{}Autoscaler configuration for Console Plugin
netobserv.consolePlugin.autoscaler.maxReplicasint3Maximum number of replicas for the Console Plugin
netobserv.consolePlugin.autoscaler.metricslistusing CPU utilizationMetrics used by the pod autoscaler. See: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2/
netobserv.consolePlugin.autoscaler.minReplicasint1Minimum number of replicas for the Console Plugin
netobserv.consolePlugin.autoscaler.statusstringDisabledStatus of the autoscaler, either Disabled or Enabled
netobserv.consolePlugin.enabledbooltrueEnable the console plugin.
netobserv.consolePlugin.imagePullPolicystringIfNotPresentImage pull policy Can either be: Always IfNotPresent Never
netobserv.consolePlugin.logLevelstringinfoLoglevel for the console plugin backend
netobserv.consolePlugin.portNamingobject{}Portnameing defines the configuration of the port-to-service name translation
netobserv.consolePlugin.portNaming.enablebooltrueEnable the console plugin port-to-service name translation
netobserv.consolePlugin.portNaming.portNamesobject{'3100': loki}defines additional port names to use in the console, for example, portNames: {"3100": "loki"}.
netobserv.consolePlugin.quickFilterslist[]Quick filters configures quick filters presents for the console plugin. You can define any filter you like, but the following filters are available by default: Applications: filter flows by the application layer Infrastructure: filter flows by the infrastructure layer Pods network: filter flows by the source and destination kind of Pod Services network: filter flows by the destination kind of Service It is not recommended to remove the default filters.
netobserv.consolePlugin.replicasint1Replicas defines the number of replicas (pods) to start.
netobserv.consolePlugin.resourcesobject{}Resource requirements for the Console Plugin in terms of compute resources, required by this container.

Exporters

KeyTypeDefaultDescription
netobserv.exporterslist[]additional optional exporters for custom consumption or storage.
netobserv.exporters[0]object{}OpenTelemetry configuration, such as the IP address and port to send enriched logs or metrics to.
netobserv.exporters[0].openTelemetry.fieldsMappinglist[]Custom fields mapping to an OpenTelemetry conformant format.
netobserv.exporters[0].openTelemetry.logsobject{"enable":true}OpenTelemet

Deploy 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 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetwork-observability is pinned at v2.0.6 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