-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update alaz version to v0.5.2 and Redhat certify
- Loading branch information
1 parent
7b5e6da
commit 8aecd8d
Showing
9 changed files
with
313 additions
and
197 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Alaz Chart - Ddosify eBPF Agent | ||
|
||
[Alaz](https://github.com/ddosify/alaz) is an open-source Ddosify eBPF agent that can inspect and collect Kubernetes (K8s) service traffic without the need for code instrumentation, sidecars, or service restarts. This is possible due to its use of eBPF technology. Alaz can create a Service Map that helps identify golden signals and problems like high latencies, 5xx errors, zombie services, SQL queries. Additionally, it can gather system information and resources via the Prometheus Node Exporter, which is readily available on the agent. | ||
|
||
To install the Alaz chart, first, you need to add the Ddosify Helm repository: | ||
|
||
```bash | ||
helm repo add ddosify https://ddosify.github.io/ddosify-helm-charts/ | ||
helm repo update | ||
``` | ||
|
||
Then, you can install the Alaz chart with the following command: | ||
```bash | ||
# Replace <MONITORING_ID> with your monitoring ID from the Ddosify UI. Change XXXXX with your monitoring ID. | ||
MONITORING_ID=XXXXX | ||
# Set BACKEND_HOST with your Ddosify Self-Hosted Endpoint. If your Ddosify Self-Hosted endpoint is http://localhost:8014, then BACKEND_HOST=http://localhost:8014/api | ||
BACKEND_HOST=XXXXX | ||
helm repo add ddosify https://ddosify.github.io/ddosify-helm-charts/ | ||
helm repo update | ||
kubectl create namespace ddosify | ||
helm upgrade --install --namespace ddosify alaz ddosify/alaz --set monitoringID=$MONITORING_ID --set backendHost=$BACKEND_HOST | ||
``` | ||
|
||
For more installation methods, see [Alaz (Ddosify eBPF Agent)](https://github.com/ddosify/alaz). | ||
|
||
## Alaz Chart Configuration Parameters | ||
|
||
The following table lists the configurable parameters of the Alaz chart and their default values. | ||
|
||
| Parameter | Description | Type | Default | | ||
| --- | --- | --- | --- | | ||
| `monitoringID` | **CHANGE**: Monitoring ID (required). You can get it from Ddosify UI, Cluster Detail Page. | string | `""` | | ||
| `backendHost` | Backend host URL to send the collected data. Default is [Ddosify Cloud](https://app.ddosify.com/). If you have Ddosify Self-Hosted installed, you can give the backend URL. | string | `https://api.ddosify.com:443` | | ||
| `namespace` | Namespace to deploy the chart | string | `ddosify` | | ||
| `logLevel` | [Zero log](https://github.com/rs/zerolog) level (0: trace, 1: debug, 2: info, 3: warn, 4: error, 5: fatal, 6: panic) | int | `1` | | ||
| `resources.limits.cpu` | CPU limit | string | `1` | | ||
| `resources.limits.memory` | Memory limit | string | `1Gi` | | ||
| `resources.requests.cpu` | CPU request | string | `500m` | | ||
| `resources.requests.memory` | Memory request | string | `400Mi` | | ||
| `image` | Alaz Docker image | string | - | | ||
| `imagePullPolicy` | Image pull policy | string | `IfNotPresent` | | ||
| `containerPort` | Container port for debugging and profiling Alaz | int | `8181` | | ||
| `podAnnotations` | Annotations to add to the pod | object | `{}` | | ||
| `metricsEnabled` | Enable prometheus node exporter metrics (cpu, memory, network, disk, etc.) | bool | `true` | | ||
| `serviceMapEnabled` | Enable service map for K8s network traffic using eBPF | bool | `true` | | ||
| `distTracingEnabled` | Enable distributed tracing using eBPF | bool | `true` | | ||
|
||
You can override these default values by creating a `values.yaml` file and specifying your own values or using the `--set` flag during installation. |
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,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ include "alaz.fullname" . }}-test-api" | ||
namespace: {{ .Values.namespace }} | ||
annotations: | ||
"helm.sh/hook": test | ||
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed | ||
spec: | ||
serviceAccountName: alaz-serviceaccount | ||
containers: | ||
- name: test | ||
image: bitnami/kubectl | ||
command: ['kubectl', 'get', 'pods', '-l', 'app.kubernetes.io/name={{ include "alaz.name" . }}', '-o', 'jsonpath={..status.conditions[?(@.type=="Ready")].status}'] | ||
restartPolicy: Never |
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,103 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Alaz Helm Chart Values", | ||
"description": "Validation schema for values of Alaz Helm chart", | ||
"type": "object", | ||
"properties": { | ||
"namespace": { | ||
"type": "string", | ||
"description": "Namespace to deploy the chart", | ||
"default": "ddosify" | ||
}, | ||
"backendHost": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Backend host URL to send the collected data", | ||
"default": "https://api.ddosify.com:443" | ||
}, | ||
"monitoringID": { | ||
"type": "string", | ||
"description": "Monitoring ID (required). You can get it from Ddosify Platform" | ||
}, | ||
"logLevel": { | ||
"type": "integer", | ||
"description": "Zero log level", | ||
"enum": [0, 1, 2, 3, 4, 5, 6], | ||
"default": 1 | ||
}, | ||
"resources": { | ||
"type": "object", | ||
"properties": { | ||
"limits": { | ||
"type": "object", | ||
"properties": { | ||
"cpu": { | ||
"type": "string", | ||
"pattern": "^\\d+m?$", | ||
"default": "1" | ||
}, | ||
"memory": { | ||
"type": "string", | ||
"pattern": "^\\d+(Mi|Gi)$", | ||
"default": "1Gi" | ||
} | ||
} | ||
}, | ||
"requests": { | ||
"type": "object", | ||
"properties": { | ||
"cpu": { | ||
"type": "string", | ||
"pattern": "^\\d+m?$", | ||
"default": "500m" | ||
}, | ||
"memory": { | ||
"type": "string", | ||
"pattern": "^\\d+(Mi|Gi)$", | ||
"default": "400Mi" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"image": { | ||
"type": "string", | ||
"description": "Alaz Docker image", | ||
"default": "ddosify/alaz:v0.1.4" | ||
}, | ||
"imagePullPolicy": { | ||
"type": "string", | ||
"enum": ["Always", "Never", "IfNotPresent"], | ||
"default": "IfNotPresent" | ||
}, | ||
"containerPort": { | ||
"type": "integer", | ||
"description": "Container port for debugging and profiling Alaz", | ||
"default": 8181 | ||
}, | ||
"podAnnotations": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"default": {} | ||
}, | ||
"metricsEnabled": { | ||
"type": "boolean", | ||
"description": "Enable Prometheus node exporter metrics", | ||
"default": true | ||
}, | ||
"serviceMapEnabled": { | ||
"type": "boolean", | ||
"description": "Enable service map for K8s network traffic using eBPF", | ||
"default": true | ||
}, | ||
"distTracingEnabled": { | ||
"type": "boolean", | ||
"description": "Enable distributed tracing using eBPF", | ||
"default": true | ||
} | ||
}, | ||
"required": ["namespace", "backendHost", "monitoringID", "logLevel", "resources", "image", "imagePullPolicy", "containerPort", "metricsEnabled", "serviceMapEnabled", "distTracingEnabled"] | ||
} | ||
|
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
Oops, something went wrong.