Commit c3a00401 authored by Dimitrios Gogos's avatar Dimitrios Gogos
Browse files

Merge branch 'feature/helm_chart' into 'develop'

Add Redis Helm dependency and resource inputs for edge app registration

See merge request !4
parents ab075fb4 435936ee
Loading
Loading
Loading
Loading
Loading
+6 −0
Changes for .gitignore: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -50,3 +50,9 @@ certs/*.crt
patch*

ai2_proxy*

*.tgz
charts/*.tgz

.agents
.codex
+28 −6
Changes for deployment/helm/README.md: 28 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -20,9 +20,15 @@ The ai-agent waits for the MCP server to be healthy before starting (via initCon

## Install

Fetch the Bitnami Redis dependency before installing:

```bash
helm install ai2 ./helm/ai2 \
  --namespace oop \
helm dependency update ./deployment/helm/ai2
```

```bash
helm install ai2test ./helm/ai2 \
  --namespace ai2test \
  --create-namespace \
  --set secrets.groqApiKey=<your-groq-api-key> \
  --set config.mcp.oegServiceUrl=http://<oeg-host>/oeg/1.0.0
@@ -31,8 +37,8 @@ helm install ai2 ./helm/ai2 \
## Upgrade

```bash
helm upgrade ai2 ./helm/ai2 \
  --namespace oop \
helm upgrade ai2test ./helm/ai2 \
  --namespace ai2test \
  --set secrets.groqApiKey=<your-groq-api-key> \
  --set config.mcp.oegServiceUrl=http://<new-oeg-host>/oeg/1.0.0
```
@@ -40,7 +46,7 @@ helm upgrade ai2 ./helm/ai2 \
## Uninstall

```bash
helm uninstall ai2 --namespace oop
helm uninstall ai2test --namespace ai2test
```

## Key Values
@@ -53,6 +59,12 @@ helm uninstall ai2 --namespace oop
| `service.mcp.type`              | Kubernetes service type for MCP  | `NodePort`               |
| `service.mcp.nodePort`          | NodePort for MCP                 | `32004`                  |
| `service.aiAgent.nodePort`      | NodePort for ai-agent            | `32013`                  |
| `redis.enabled`                 | Deploy Redis for agent memory    | `true`                   |
| `redis.master.service.ports.redis` | Bitnami Redis service port     | `6379`                   |
| `redis.memory.database`         | Redis database index for AI memory | `0`                    |
| `config.aiAgent.memoryWindowTurns` | Recent turns retained in memory | `10`                    |
| `config.aiAgent.memoryTtlSeconds` | Session memory TTL in seconds   | `3600`                  |
| `config.aiAgent.memoryKeyPrefix` | Redis key prefix                 | `ai_agent:session`       |
| `images.mcp.tag`                | MCP image tag                    | `latest`                 |
| `images.aiAgent.tag`            | AI Agent image tag               | `latest`                 |

@@ -72,7 +84,7 @@ Then install with `pullPolicy: IfNotPresent` to use the local images:

```bash
helm install ai2 ./helm/ai2 \
  --namespace oop \
  --namespace ai2test \
  --create-namespace \
  --set secrets.groqApiKey=<your-groq-api-key> \
  --set config.mcp.oegServiceUrl=http://<oeg-host>/oeg/1.0.0 \
@@ -80,6 +92,16 @@ helm install ai2 ./helm/ai2 \
  --set images.aiAgent.pullPolicy=IfNotPresent
```

## Redis Memory

Redis is deployed through the Bitnami Redis Helm chart dependency as an in-cluster service and is used by the AI agent for optional short-term session memory. The generated agent value is:

```bash
REDIS_URL=redis://<redis-service>:6379/0
```

This mirrors the Docker Compose Redis container port `6379`; the chart disables Redis auth and persistence by default to match the local cache/session-store behavior. The Compose host mapping `6385:6379` is not represented as a Kubernetes NodePort because Kubernetes NodePorts must normally be in the cluster NodePort range, commonly `30000-32767`.

## Test the Deployment

```bash
+6 −0
Changes for deployment/helm/ai2/Chart.lock: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
dependencies:
- name: redis
  repository: oci://registry-1.docker.io/bitnamicharts
  version: 25.5.3
digest: sha256:b680f268339ce6899da9e632b2839d21e8391886211d57f7bcc735c73ffa6e1c
generated: "2026-06-04T11:48:21.792172108+03:00"
+6 −0
Changes for deployment/helm/ai2/Chart.yaml: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,3 +12,9 @@ keywords:
home: https://labs.etsi.org/rep/oop/code/ai2
maintainers:
  - name: OOP Team

dependencies:
  - name: redis
    version: 25.5.3
    repository: oci://registry-1.docker.io/bitnamicharts
    condition: redis.enabled
−102 KiB

File deleted.

Loading