network-observability
by tjungbauer
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:
| Repository | Name | Version |
|---|---|---|
| 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
| Name | Url | |
|---|---|---|
| tjungbauer | [email protected] | https://blog.stderr.at/ |
Sources
Source:
- https://github.com/tjungbauer/helm-charts
- https://charts.stderr.at/
- https://github.com/tjungbauer/openshift-clusterconfig-gitops
Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/network-observability
Parameters
Values
General
| Key | Type | Default | Description |
|---|---|---|---|
| netobserv.additionalAnnotations | object | {} | Additional labels to add to the Keycloak instance as key: value pairs. |
| netobserv.additionalLabels | object | {} | Additional labels to add to the Keycloak instance as key: value pairs. |
| netobserv.deploymentModel | string | Direct | Defines the desired type of deployment for flow processing. Possible values: Direct Kafka |
| netobserv.enabled | bool | false | Enable Network Observability configuration? This will also create the reader/writer rolebanding for multi-tenancy |
| netobserv.namespace | object | {"create":true,"name":"netobserv"} | Namespace where Network Observability FlowCollector shall be installed. |
| netobserv.namespace.create | bool | true | Create the namespace if it does not exist. |
| netobserv.namespace.name | string | netobserv | Name of the namespace |
| netobserv.syncwave | int | 10 | Syncwave for the FlowCollector resource. |
Agent
| Key | Type | Default | Description |
|---|---|---|---|
| netobserv.agent | object | {} | Agent configuration for flows extraction |
| netobserv.agent.ebpf | object | {} | Settings related to the eBPF-based flow reporter. |
| netobserv.agent.ebpf.cacheActiveTimeout | string | 5s | Active 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.cacheMaxFlows | int | 100000 | Maximum 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.excludeInterfaces | list | ['lo'] | Interfaces to exclude from the eBPF agent. |
| netobserv.agent.ebpf.features | list | [] | 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.imagePullPolicy | string | IfNotPresent | Image pull policy for the eBPF agent. Can either be: Always IfNotPresent Never |
| netobserv.agent.ebpf.interfaces | list | [] | Interfaces to include for the eBPF agent. If empty, the agent fetches all the interfaces |
| netobserv.agent.ebpf.kafkaBatchSize | int | 0 | Batch size for Kafka. |
| netobserv.agent.ebpf.logLevel | string | info | Log level for the eBPF agent. Can be: trace debug info warn error fatal panic |
| netobserv.agent.ebpf.metrics | object | {} | Defines the eBPF agent configuration regarding metrics. |
| netobserv.agent.ebpf.metrics.disableAlerts | list | [] | 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.server | object | {} | Metrics server endpoint configuration for the Prometheus scraper |
| netobserv.agent.ebpf.metrics.server.port | int | 9400 | The metrics server HTTP port. |
| netobserv.agent.ebpf.metrics.server.tls | object | {} | TLS configuration for the metrics server. |
| netobserv.agent.ebpf.metrics.server.tls.insecureSkipVerify | bool | false | Skip client-side verification of the provided certificate. If set to true, the providedCaFile field is ignored. |
| netobserv.agent.ebpf.metrics.server.tls.provided | object | {} | TLS configuration when type is set to Provided. |
| netobserv.agent.ebpf.metrics.server.tls.provided.certFile | string | '' | Path to the certificate file name within the configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.provided.certKey | string | '' | Path to the certificate private key within the configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.provided.name | string | '' | The name of the secret or configmap containing the certificate and key files. |
| netobserv.agent.ebpf.metrics.server.tls.provided.namespace | string | '' | Namespace of the configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.provided.type | string | '' | The type for the certificate. Can either be configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.providedCaFile | object | {} | Reference to the CA file when type is set to Provided. |
| netobserv.agent.ebpf.metrics.server.tls.providedCaFile.file | string | '' | File name within the config map or secret. |
| netobserv.agent.ebpf.metrics.server.tls.providedCaFile.name | string | '' | The name of the secret or configmap containing the CA file. |
| netobserv.agent.ebpf.metrics.server.tls.providedCaFile.namespace | string | '' | Namespace of the configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.providedCaFile.type | string | '' | The type for the CA file. Can either be configmap or secret. |
| netobserv.agent.ebpf.metrics.server.tls.type | string | Disabled | Select 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.privileged | bool | false | Enable privileged mode for the eBPF agent. |
| netobserv.agent.ebpf.resources | object | {} | Resources for the eBPF agent. |
| netobserv.agent.ebpf.sampling | int | 50 | Sampling 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.type | string | eBPF | Type of the agent. |
| netobserv.networkPolicy | object | {"additionalNamespaces":[],"enable":false} | NetworkPolicy defines ingress network policy settings for network observability components isolation. |
| netobserv.networkPolicy.additionalNamespaces | list | [] | A list of additional namespaces allowed to connect to the network observability namespace. |
| netobserv.networkPolicy.enable | bool | false | Deploy network polices for the network observability components. |
Console Plugin
| Key | Type | Default | Description |
|---|---|---|---|
| netobserv.consolePlugin | object | {} | Console Plugin configuration related to the OpenShift Console integration. |
| netobserv.consolePlugin.advanced | object | {} | Advanced Parameters for the Console Plugin |
| netobserv.consolePlugin.advanced.register | bool | true | Automatically register the Console Plugin with the OpenShift Console |
| netobserv.consolePlugin.advanced.scheduling | object | {"nodeSelector":{},"tolerations":[]} | Set placement and tolerations for the consolePlugin |
| netobserv.consolePlugin.advanced.scheduling.nodeSelector | object | {} | Set nodeSelector to place the consolePlugin on specific nodes nodeSelector: key: node-role.kubernetes.io/infra value: '' |
| netobserv.consolePlugin.advanced.scheduling.tolerations | list | [] | 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.autoscaler | object | {} | Autoscaler configuration for Console Plugin |
| netobserv.consolePlugin.autoscaler.maxReplicas | int | 3 | Maximum number of replicas for the Console Plugin |
| netobserv.consolePlugin.autoscaler.metrics | list | using CPU utilization | Metrics used by the pod autoscaler. See: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2/ |
| netobserv.consolePlugin.autoscaler.minReplicas | int | 1 | Minimum number of replicas for the Console Plugin |
| netobserv.consolePlugin.autoscaler.status | string | Disabled | Status of the autoscaler, either Disabled or Enabled |
| netobserv.consolePlugin.enabled | bool | true | Enable the console plugin. |
| netobserv.consolePlugin.imagePullPolicy | string | IfNotPresent | Image pull policy Can either be: Always IfNotPresent Never |
| netobserv.consolePlugin.logLevel | string | info | Loglevel for the console plugin backend |
| netobserv.consolePlugin.portNaming | object | {} | Portnameing defines the configuration of the port-to-service name translation |
| netobserv.consolePlugin.portNaming.enable | bool | true | Enable the console plugin port-to-service name translation |
| netobserv.consolePlugin.portNaming.portNames | object | {'3100': loki} | defines additional port names to use in the console, for example, portNames: {"3100": "loki"}. |
| netobserv.consolePlugin.quickFilters | list | [] | 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.replicas | int | 1 | Replicas defines the number of replicas (pods) to start. |
| netobserv.consolePlugin.resources | object | {} | Resource requirements for the Console Plugin in terms of compute resources, required by this container. |
Exporters
| Key | Type | Default | Description |
|---|---|---|---|
| netobserv.exporters | list | [] | 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.fieldsMapping | list | [] | Custom fields mapping to an OpenTelemetry conformant format. |
| netobserv.exporters[0].openTelemetry.logs | object | {"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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnetwork-observability is pinned at v2.0.6 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