-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/vethwatcher
- Loading branch information
Showing
107 changed files
with
6,499 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package legacy | ||
package standard | ||
|
||
import "github.com/cilium/ebpf/rlimit" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ontroller/helm/retina/templates/NOTES.txt → ...ontroller/helm/retina/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
1. Installing retina service using helm: helm install retina ./deploy/legacy/manifests/controller/helm/retina/ --namespace kube-system --dependency-update | ||
1. Installing retina service using helm: helm install retina ./deploy/standard/manifests/controller/helm/retina/ --namespace kube-system --dependency-update | ||
2. Cleaning up/uninstalling/deleting retina and dependencies related: | ||
helm uninstall retina -n kube-system |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...etheus/network-observability/create-cm.sh → ...etheus/network-observability/create-cm.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
kubectl delete cm ama-metrics-prometheus-config-node -n kube-system | ||
kubectl create configmap ama-metrics-prometheus-config-node --from-file=./deploy/legacy/prometheus/cilium/prometheus-config -n kube-system | ||
kubectl create configmap ama-metrics-prometheus-config-node --from-file=./deploy/standard/prometheus/cilium/prometheus-config -n kube-system | ||
k rollout restart ds ama-metrics-node -n kube-system |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
kubectl create configmap ama-metrics-prometheus-config-node --from-file=./deploy/standard/prometheus/retina/prometheus-config -n kube-system |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# What is Retina? | ||
|
||
## Introduction | ||
|
||
Retina is a cloud-agnostic, open-source **Kubernetes Network Observability platform** which enables the use of Hubble as a control plane regardless of the underlying OS or CNI. | ||
|
||
Retina can help with DevOps, SecOps and compliance use cases. | ||
|
||
It provides a **centralized hub for monitoring application and network health and security** (do we provide security?), catering to Cluster Network/Security Administrators and DevOps Engineers. | ||
|
||
Retina **collects customizable telemetry**, which can be exported to **multiple storage options** (such as Prometheus, Azure Monitor, etc.) and **visualized in a variety of ways** (like Grafana, Azure Log Analytics, etc.). | ||
|
||
![High Level Architecture](./img/Retina%20Arch.png "High Level Architecture") | ||
|
||
## Features | ||
|
||
- **[eBPF](https://ebpf.io/what-is-ebpf#what-is-ebpf) based** - Leverages eBPF technologies to collect and provide insights into your Kubernetes cluster with minimal overhead. | ||
- **Platform Agnostic** - Works with any Cloud or On-Prem Kubernetes distribution and supports multiple OS such as Linux, Windows, Azure Linux, etc. | ||
- **CNI Agnostic** - Works with any Container Networking Interfaces (CNIs) like Azure CNI, AWS VPC, etc. | ||
- **Actionable Metrics** - Provides industry-standard Prometheus metrics. | ||
- **Hubble Integration** - Integrates with Cilium's Hubble for additional network insights such as flows logs, DNS, etc | ||
- **Packet Capture** - Distributed packet captures for deep dive troubleshooting | ||
|
||
## Why Retina? | ||
|
||
Retina lets you **investigate network issues on-demand** and **continuously monitor your clusters**. Here are a couple scenarios where Retina shines, minimizing pain points and investigation time. | ||
|
||
### Use Case - Debugging Network Connectivity | ||
|
||
*Why can't my Pods connect to each other any more?* | ||
|
||
**Typical investigation is time-intensive** and involves manually performing packet captures, where one must first identify the Nodes involved, gain access to each Node, run `tcpdump` commands, and export the results off of each Node. | ||
|
||
With Retina, you can **automate this process** with a **single CLI command** or CRD/YAML that can: | ||
|
||
- Run captures on all Nodes hosting the Pods of interest. | ||
- Upload each Node's results to a storage blob. | ||
|
||
To begin using the CLI, see [Quick Start Installation](../02-Installation/02-CLI.md). | ||
|
||
### Use Case - Monitoring Network Health | ||
|
||
Retina supports actionable insights through **Prometheus** alerting, **Grafana** dashboards, and more. For instance, you can: | ||
|
||
- Monitor dropped traffic in a namespace. | ||
- Alert on a spike in production DNS errors. | ||
- Watch changes in API Server latency while testing your application's scale. | ||
- Notify your Security team if a Pod starts sending too much traffic. | ||
|
||
## Telemetry | ||
|
||
Retina uses two types of telemetry: metrics and captures. | ||
|
||
### Metrics | ||
|
||
Retina metrics provide **continuous observability** into: | ||
|
||
- Incoming/outcoming traffic | ||
- Dropped packets | ||
- TCP/UDP | ||
- DNS | ||
- API Server latency | ||
- Node/interface statistics | ||
|
||
Retina provides both: | ||
|
||
- **Basic metrics** - Node-Level (default) | ||
- **Advanced metrics** - Pod-Level (if enabled) | ||
|
||
For more info and a list of metrics, see [Metrics](../03-Metrics/modes/modes.md). | ||
|
||
The same set of metrics are generated regardless of the underlying OS or CNI. | ||
|
||
### Captures | ||
|
||
A Retina capture **logs network traffic** and metadata **for the specified Nodes/Pods**. | ||
|
||
Captures are **on-demand** and can be output to multiple destinations. For more info, see [Captures](../04-Captures/01-overview.md). | ||
|
||
## What is Hubble? | ||
|
||
Hubble is a fully distributed networking and security observability platform designed for cloud-native workloads. It’s built on top of [Cilium](https://cilium.io/get-started/) and [eBPF](https://ebpf.io/what-is-ebpf/), which allows it to provide deep visibility into the communication and behavior of services and the networking infrastructure. | ||
|
||
You can read the official documentation here - [What is Hubble?](https://docs.cilium.io/en/stable/overview/intro/#what-is-hubble) | ||
|
||
Both Hubble and Retina, are listed as emerging [eBPF Applications](https://ebpf.io/applications/)! | ||
|
||
Hubble has historically been quite tightly coupled with Cilium. This led to challenges if you wanted to use another CNI, or perhaps go beyond Linux. Retina bridges this gap, and enables the use of a Hubble control plane on any CNI and across both Linux and Windows. | ||
|
||
Check out our talk from KubeCon 2024 which goes into this topic even further - [Hubble Beyond Cilium - Anubhab Majumdar & Mathew Merrick, Microsoft](https://www.youtube.com/watch?v=cnNUfQKhYiM) | ||
|
||
## Minimum System Requirements | ||
|
||
The following are known system requirements for installing Retina: | ||
|
||
- Minimum Linux Kernel Version: v5.4.0 |
Oops, something went wrong.