Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Doc/docs/cfcli/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ This document describes the available commands and provides a quick reference ta
## Setup Commands

- **`cfcli install cortexflow`**
Installs **all** CortexBrain core components.
Installs **all** CortexBrain core components from the manifests in [`Examples/minikube`](https://github.com/CortexFlow/CortexBrain/tree/0.1.5/Examples/minikube).

- **`cfcli install simple-example`**
Installs a demo example defined in [deploy-test-pod.yaml](https://github.com/CortexFlow/CortexBrain/blob/main/core/src/testing/deploy-test-pod.yaml).
!!! note
`cfcli install simple-example` was removed in 0.1.5 because `deploy-test-pod.yaml` is no longer part of the repository. Use the manifests under [`Examples/minikube`](https://github.com/CortexFlow/CortexBrain/tree/0.1.5/Examples/minikube) for demo deployments.

- **`cfcli uninstall`**
Uninstalls **all** CortexBrain components.
Expand Down Expand Up @@ -61,7 +61,6 @@ This document describes the available commands and provides a quick reference ta
| Command | Category | Description |
|--------------------------------|----------------------|-----------------------------------------------------------------------------|
| `cfcli install cortexflow` | Installation | Installs all CortexBrain core components |
| `cfcli install simple-example` | Installation | Installs a demo example from `deploy-test-pod.yaml` |
| `cfcli uninstall` | Installation | Uninstalls all CortexBrain components |
| `cfcli update` | CLI Management | Checks if the CLI version is up to date |
| `cfcli info` | CLI Management | Displays version, authors, description, and environment metadata |
Expand Down
2 changes: 1 addition & 1 deletion Doc/docs/developer-guide/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ All CortexBrain components run in the `cortexflow` namespace. The core deploymen
| `cortexflow-identity` | initContainer `bpf-map-permissions` (mounts bpffs); `identity` -> `/usr/local/bin/cortexflow-identity-service`; sidecar `bpftool-control-manager` | `lorenzotettamanti/cortexflow-identity:latest` | None (no Service) | **Producer** - pins `events_map`, `veth_map`, `blocklist_map`, `tcp_packet_registry`; seeds `blocklist_map` from the `cortexbrain-client-config` ConfigMap |
| `cortexflow-metrics` | `metrics` -> `/usr/local/bin/cortexflow-metrics`; sidecar `bpftool-control-manager` | `lorenzotettamanti/cortexflow-metrics:latest` | None (no Service) | **Producer** - pins `net_metrics`, `time_stamp_events` |

**Manifests**: `core/src/testing/agent.yaml`, `core/src/testing/identity.yaml`, `core/src/testing/metrics.yaml`
**Manifests**: `Examples/minikube/agent.yaml`, `Examples/minikube/identity.yaml`, `Examples/minikube/metrics.yaml`
## Where to go next

- **[Agent API Overview](../developer-guide/agent-api.md)** - the gRPC RPCs and the BPF maps behind them, in detail.
Expand Down
2 changes: 1 addition & 1 deletion Doc/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ For RedHat/CentOS/Fedora based distributions you can copy and paste the followin
```
- Install the core components using cfcli:
```bash
cfcli install
cfcli install cortexflow
```
80 changes: 36 additions & 44 deletions Doc/docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,52 +163,48 @@ chmod 700 /sys/fs/bpf
```
For this step, this is the expected output:
```bash
[SYSTEM] Founded config files
[SYSTEM] Readed configs for env variable: "Kubernetes"
=====> Preparing cortexflow installation
=====> Creating the config files
=====> Insert your cluster environment (e.g. Kubernetes)
=====> Creating cortexflow namespace
```
Here you need to enter your cluster environment (e.g. Kubernetes, Docker Swarm, etc...)
After that, the installation will take place and will take no longer than 1 minute.
The installation will take place and will take no longer than 1 minute.
<details>
<summary> This is the expected output</summary>
```bash
[SYSTEM] Configuration files saved in path :"/home/cortexflow/.config/cfcli/config.yaml"


[SYSTEM] Readed configs for env variable: "Kubernetes"
=====> Preparing cortexflow installation
=====> Creating the config files
=====> Creating cortexflow namespace
=====> Copying installation files
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/configmap.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/configmap-role.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/cortexflow-rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/identity.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/feature/ebpf-core/core/src/testing/agent.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/configmap-role.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/cortexflow-rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/identity.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/metrics.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/agent.yaml


=====> Creating cortexflow namespace
=====> Installing cortexflow components
=====> (1/ 6) Applying configmap.yaml
✅ Applied configmap.yaml
=====> (2/ 6) Applying configmap-role.yaml
=====> (1/ 6) Applying configmap-role.yaml
✅ Applied configmap-role.yaml
=====> (3/ 6) Applying rolebinding.yaml
=====> (2/ 6) Applying rolebinding.yaml
✅ Applied rolebinding.yaml
=====> (4/ 6) Applying cortexflow-rolebinding.yaml
=====> (3/ 6) Applying cortexflow-rolebinding.yaml
✅ Applied cortexflow-rolebinding.yaml
=====> (5/ 6) Applying identity.yaml
=====> (4/ 6) Applying identity.yaml
✅ Applied identity.yaml
=====> (5/ 6) Applying metrics.yaml
✅ Applied metrics.yaml
=====> (6/ 6) Applying agent.yaml
✅ Applied agent.yaml


=====> Removing temporary installation files
✅ Removed file configmap.yaml
✅ Removed file configmap-role.yaml
✅ Removed file rolebinding.yaml
✅ Removed file cortexflow-rolebinding.yaml
✅ Removed file identity.yaml
✅ Removed file metrics.yaml
✅ Removed file agent.yaml
=====> installation completed

Expand Down Expand Up @@ -284,52 +280,48 @@ chmod 700 /sys/fs/bpf
```
For this step, this is the expected output:
```bash
[SYSTEM] Founded config files
[SYSTEM] Readed configs for env variable: "Kubernetes"
=====> Preparing cortexflow installation
=====> Creating the config files
=====> Insert your cluster environment (e.g. Kubernetes)
=====> Creating cortexflow namespace
```
Here you need to enter your cluster environment (e.g. Kubernetes, Docker Swarm, etc...)
After that, the installation will take place and will take no longer than 1 minute.
The installation will take place and will take no longer than 1 minute.
<details>
<summary> This is the expected output</summary>
```bash
[SYSTEM] Configuration files saved in path :"/home/cortexflow/.config/cfcli/config.yaml"


[SYSTEM] Readed configs for env variable: "Kubernetes"
=====> Preparing cortexflow installation
=====> Creating the config files
=====> Creating cortexflow namespace
=====> Copying installation files
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/configmap.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/configmap-role.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/cortexflow-rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/main/core/src/testing/identity.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/feature/ebpf-core/core/src/testing/agent.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/configmap-role.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/cortexflow-rolebinding.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/identity.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/metrics.yaml
✅ Copied file from https://raw.githubusercontent.com/CortexFlow/CortexBrain/refs/heads/0.1.5/Examples/minikube/agent.yaml


=====> Creating cortexflow namespace
=====> Installing cortexflow components
=====> (1/ 6) Applying configmap.yaml
✅ Applied configmap.yaml
=====> (2/ 6) Applying configmap-role.yaml
=====> (1/ 6) Applying configmap-role.yaml
✅ Applied configmap-role.yaml
=====> (3/ 6) Applying rolebinding.yaml
=====> (2/ 6) Applying rolebinding.yaml
✅ Applied rolebinding.yaml
=====> (4/ 6) Applying cortexflow-rolebinding.yaml
=====> (3/ 6) Applying cortexflow-rolebinding.yaml
✅ Applied cortexflow-rolebinding.yaml
=====> (5/ 6) Applying identity.yaml
=====> (4/ 6) Applying identity.yaml
✅ Applied identity.yaml
=====> (5/ 6) Applying metrics.yaml
✅ Applied metrics.yaml
=====> (6/ 6) Applying agent.yaml
✅ Applied agent.yaml


=====> Removing temporary installation files
✅ Removed file configmap.yaml
✅ Removed file configmap-role.yaml
✅ Removed file rolebinding.yaml
✅ Removed file cortexflow-rolebinding.yaml
✅ Removed file identity.yaml
✅ Removed file metrics.yaml
✅ Removed file agent.yaml
=====> installation completed

Expand Down
Loading
Loading