add Kubernetes support#3
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces comprehensive Kubernetes support to the eBPF monitoring system, expanding it from VM-only deployment to dual VM/Kubernetes support with a dedicated aggregator component. The changes enable cluster-wide monitoring with automatic metadata enrichment and maintain full backward compatibility.
- New Kubernetes aggregator component for centralized event collection across cluster nodes
- Complete Docker containerization with multi-stage builds and Kind local testing support
- Extensive Kubernetes manifests, RBAC, and deployment automation scripts
Reviewed Changes
Copilot reviewed 29 out of 31 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/*.sh | Deployment, testing, and Kind cluster management automation scripts |
| kubernetes/*.yaml | Complete Kubernetes manifests for DaemonSet, Deployment, RBAC, and services |
| internal/kubernetes/ | Kubernetes metadata provider for automatic node/pod/namespace enrichment |
| internal/aggregator/ | New aggregator service for centralized event collection and API |
| internal/client/ | Client library for agents to communicate with aggregator |
| docker/Dockerfile* | Multi-stage Docker builds for both agent and aggregator components |
| cmd/aggregator/ | New aggregator binary entrypoint with health checks and event APIs |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request significantly expands and refactors the
Makefileto support a more robust and flexible development workflow for both local and Kubernetes environments. It introduces new build targets for multiple binaries, adds containerization and Kubernetes deployment support, and improves developer experience with comprehensive help and cleaning commands.The most important changes are:
Build System Enhancements:
build-server) and aggregator (build-aggregator) binaries, as well as a combinedbuildtarget to build both at once. Also introduced abuild-aggregator-onlytarget for Docker builds without eBPF dependencies.Containerization and Cross-Platform Support:
docker-build-agent,docker-build-aggregator,docker-build) and push targets, with special handling for cross-compiling eBPF programs on macOS using Docker.bpf-cross-compile,bpf-cross-clean) to facilitate building eBPF objects for ARM64 Linux from macOS hosts.Kubernetes and Local Testing Integration:
Developer Experience Improvements:
helptarget to document all new and existing Makefile commands, including container, Kubernetes, and Kind targets, making onboarding and usage easier.clean-bpf,fresh-build,fresh-kind-build) for more granular or complete clean-and-rebuild operations.