Skip to content

Commit 6a3c00b

Browse files
committed
OSDOCS-11625:Viewing Network events in Network Observability
1 parent 1823864 commit 6a3c00b

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// network_observability/observing-network-traffic.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="network-observability-networking-events-overview_{context}"]
7+
= OVN Kubernetes networking events
8+
:FeatureName: OVN-Kubernetes networking events tracking
9+
include::snippets/technology-preview.adoc[]
10+
11+
You use network event tracking in Network Observability to gain insight into OVN-Kubernetes events, including network policies, admin network policies, and egress firewalls. You can use the insights from tracking network events to help with the following tasks:
12+
13+
* Network monitoring: Monitor allowed and blocked traffic, detecting whether packets are allowed or blocked based on network policies and admin network policies.
14+
15+
* Network security: You can track outbound traffic and see whether it adheres to egress firewall rules. Detect unauthorized outbound connections and flag outbound traffic that violates egress rules.
16+
17+
See the _Additional resources_ in this section for more information about enabling and working with this view.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * network_observability/observing-network-traffic.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="network-observability-viewing-network-events_{context}"]
7+
= Viewing network events
8+
:FeatureName: OVN-Kubernetes networking events tracking
9+
include::snippets/technology-preview.adoc[]
10+
11+
You can edit the `FlowCollector` to view information about network traffic events, such as network flows that are dropped or allowed by the following resources:
12+
13+
* `NetworkPolicy`
14+
* `AdminNetworkPolicy`
15+
* `BaselineNetworkPolicy`
16+
* `EgressFirewall`
17+
* `UserDefinedNetwork` isolation
18+
* Multicast ACLs
19+
20+
.Prerequisites
21+
* You must have `OVNObservability` enabled by setting the `TechPreviewNoUpgrade` feature set in the `FeatureGate` custom resource (CR) named `cluster`. For more information, see "Enabling feature sets using the CLI" and "Checking OVN-Kubernetes network traffic with OVS sampling using the CLI".
22+
* You have created at least one of the following network APIs: `NetworkPolicy`, `AdminNetworkPolicy`, `BaselineNetworkPolicy`, `UserDefinedNetwork` isolation, multicast, or `EgressFirewall`.
23+
24+
.Procedure
25+
. In the web console, navigate to *Operators* -> *Installed Operators*.
26+
. In the *Provided APIs* heading for the *NetObserv Operator*, select *Flow Collector*.
27+
. Select *cluster*, and then select the *YAML* tab.
28+
. Configure the `FlowCollector` CR to enable viewing `NetworkEvents`, for example:
29+
+
30+
[id="network-observability-flowcollector-configuring-networkevents{context}"]
31+
.Example `FlowCollector` configuration
32+
[source, yaml]
33+
----
34+
apiVersion: flows.netobserv.io/v1beta2
35+
kind: FlowCollector
36+
metadata:
37+
name: cluster
38+
spec:
39+
agent:
40+
type: eBPF
41+
ebpf:
42+
# sampling: 1 <1>
43+
privileged: true <2>
44+
features:
45+
- "NetworkEvents"
46+
----
47+
<1> Optional: The `sampling` parameter is set to a value of 1 so that all network events are captured. If sampling `1` is too resource heavy, set sampling to something more appropriate for your needs.
48+
<2> The `privileged` parameter is set to `true` because the `OVN observability` library needs to access local Open vSwitch (OVS) socket and OpenShift Virtual Network (OVN) databases.
49+
50+
.Verification
51+
. Navigate to the *Network Traffic* view and select the *Traffic flows* table.
52+
. You should see the new column, *Network Events*, where you can view information about impacts of one of the following network APIs you have enabled: `NetworkPolicy`, `AdminNetworkPolicy`, `BaselineNetworkPolicy`, `UserDefinedNetwork` isolation, multicast, or egress firewalls.
53+
54+
An example of the kind of events you could see in this column is as follows:
55+
+
56+
.Example of Network Events output
57+
[source,text]
58+
----
59+
<Dropped_or_Allowed> by <network_event_and_event_name>, direction <Ingress_or_Egress>
60+
----

observability/network_observability/observing-network-traffic.adoc

+11
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ include::modules/network-observability-flow-filter-parameters.adoc[leveloffset=+
4141
* xref:../../observability/network_observability/metrics-alerts-dashboards.adoc#network-observability-metrics_metrics-dashboards-alerts[Network Observability metrics]
4242
* xref:../../observability/network_observability/network-observability-operator-monitoring.adoc#network-observability-health-dashboard-overview_network_observability[Health dashboards]
4343
44+
include::modules/network-observability-networking-events-overview.adoc[leveloffset=+2]
45+
[role="_additional-resources"]
46+
.Additional resources
47+
* xref:../../observability/network_observability/observing-network-traffic.adoc#network-observability-viewing-network-events_nw-observe-network-traffic[Viewing network events]
48+
4449
//Traffic flows
4550
include::modules/network-observability-trafficflow.adoc[leveloffset=+1]
4651
include::modules/network-observability-working-with-trafficflow.adoc[leveloffset=+2]
@@ -54,6 +59,12 @@ include::modules/network-observability-working-with-zones.adoc[leveloffset=+2]
5459
include::modules/network-observability-filtering-ebpf-rule.adoc[leveloffset=+2]
5560
include::modules/network-observability-packet-translation-overview.adoc[leveloffset=+2]
5661
include::modules/network-observability-packet-translation.adoc[leveloffset=+2]
62+
include::modules/network-observability-viewing-network-events.adoc[leveloffset=+2]
63+
64+
[role="_additional-resources"]
65+
.Additional resources
66+
* xref:../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling-features-cli_nodes-cluster-enabling[Enabling feature sets using the CLI]
67+
* xref:../../networking/ovn_kubernetes_network_provider/ovn-kubernetes-troubleshooting-sources.adoc#nw-ovn-kubernetes-observability_ovn-kubernetes-sources-of-troubleshooting-information[Checking OVN-Kubernetes network traffic with OVS sampling using the CLI]
5768
5869
//Topology
5970
include::modules/network-observability-topology.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)