Skip to content
Merged
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
3 changes: 2 additions & 1 deletion Examples/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ You may need to set the prometheus source manually. By default the Prometheus ad
| Example | Description|
|-----|-------------|
|run-with-docker| This example includes a basic example pipeline using **CortexBrain Identity** and **Metrics** components. Metrics are scraped by Prometheus and visualized using a custom Grafana dashboard|
|run-with-docker-gpu| This example includes a basic example pipeline using **CortexBrain Identity** and **Metrics** components. GPU data are provided by the **NVIDIA-DCGM** exporter. Metrics are scraped by Prometheus and visualized using a custom Grafana dashboard|
|run-with-docker-gpu| This example includes a basic example pipeline using **CortexBrain Identity** and **Metrics** components. GPU data are provided by the **NVIDIA-DCGM** exporter. Metrics are scraped by Prometheus and visualized using a custom Grafana dashboard|
|minikube| This example includes a basic minikube setup to test CortexBrain components using **Minikube**. Includes **CortexBrain Identity** and **CortexBrain Metrics** components setup, basic RBAC setup and a simple chaos injection setup using **Chaos Mesh**. As the other examples metrics are scraped by Prometheus and visualized using Grafana|
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,9 @@ spec:
spec:
hostPID: true
hostNetwork: true
initContainers:
- name: bpf-map-permissions
image: ubuntu:24.04
command: ["/bin/bash","-c"]
args:
- |
echo "mounting the bpf path "
mount -t bpf bpf /sys/fs/bpf

echo "checking permissions"
ls -ld /sys/fs/bpf
volumeMounts:
- name: bpf
mountPath: /sys/fs/bpf
mountPropagation: Bidirectional
readOnly: false
- name: kernel-dev
mountPath: /lib/modules
readOnly: false
- name: cgroup
mountPath: /sys/fs/cgroup
readOnly: true
securityContext:
runAsUser: 0
privileged: true
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
- NET_ADMIN
- SYS_RESOURCE
- BPF
- SYS_PTRACE
containers:
- name: identity
image: ghcr.io/cortexflow/identity:latest
image: lorenzotettamanti/cortexflow-identity:lru-update2
command: ["/bin/bash", "-c"]
args:
- |
Expand Down Expand Up @@ -107,37 +74,6 @@ spec:
- SYS_RESOURCE
- BPF
- SYS_PTRACE
- name: bpftool-control-manager
image: danielpacak/bpftool-runner:latest
command: ["/bin/bash", "-c","sleep infinity"]
volumeMounts:
- name: bpf
mountPath: /sys/fs/bpf
mountPropagation: Bidirectional
readOnly: false
- name: kernel-dev
mountPath: /lib/modules
readOnly: false
- name: cgroup
mountPath: /sys/fs/cgroup
readOnly: true
resources:
limits:
cpu: "1"
memory: "200Mi"
requests:
cpu: "1"
memory: "100Mi"
securityContext:
privileged: true
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
- NET_ADMIN
- SYS_RESOURCE
- BPF
- SYS_PTRACE
volumes:
- name: bpf
hostPath:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.enable-lifecycle"
- "--web.enable-admin-api" # useful to delete series from the tsdb
ports:
- containerPort: 9090
name: web
Expand Down
3 changes: 0 additions & 3 deletions Examples/run-with-docker-gpu/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ services:
- GOMEMLIMIT=1600MiB
volumes:
- ./otel-collector-config.yaml:/conf/otel-collector-config.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
depends_on:
Expand Down Expand Up @@ -111,7 +110,6 @@ services:
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
healthcheck:
Expand Down Expand Up @@ -140,7 +138,6 @@ services:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana-data:/var/lib/grafana
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
restart: on-failure
Expand Down
3 changes: 0 additions & 3 deletions Examples/run-with-docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ services:
- GOMEMLIMIT=1600MiB
volumes:
- ./otel-collector-config.yaml:/conf/otel-collector-config.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
depends_on:
Expand All @@ -90,7 +89,6 @@ services:
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
healthcheck:
Expand Down Expand Up @@ -125,7 +123,6 @@ services:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana-data:/var/lib/grafana
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cortexflow
restart: on-failure
Expand Down
148 changes: 0 additions & 148 deletions core/src/testing/deploy-test-pod.yaml

This file was deleted.

Loading