Commit 0bf276f9 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

More polisghing...

parent 4f58ca91
Loading
Loading
Loading
Loading
+23 −5
Original line number Diff line number Diff line
@@ -8,16 +8,16 @@ This directory contains Ansible group variables organized by component for bette
group_vars/
└── all/                           # Variables for the 'all' group (applies to all hosts)
    ├── all.yml                   # Global/shared variables
    ├── kind_cluster.yml          # Kind cluster configuration
    ├── k8s_cluster.yml           # K8s cluster configuration (distro-agnostic)
    ├── monitoring.yml            # Prometheus/Grafana monitoring stack
    ├── node_feature_discovery.yml # NFD configuration
    ├── federation_manager.yml    # Federation Manager NodePorts
    ├── i2edge.yml                # i2edge edge cloud platform
    ├── lite2edge.yml             # lite2edge edge cloud platform
    ├── lite2edge.yml             # lite2edge + edge_orchestrator config
    ├── srm.yml                   # SRM (Service Resource Manager) - OOP module
    ├── oeg.yml                   # OEG (Open Exposure Gateway) - OOP module
    ├── artefact_manager.yml      # Artefact Manager - OOP module
    ├── zot.yml                   # Zot container registry
    ├── zot.yml                   # Zot + artifact_registry config
    └── homer.yml                 # Homer dashboard
```

@@ -25,6 +25,24 @@ group_vars/

Ansible automatically loads **all** `.yml` files from `group_vars/<group_name>/` for hosts in that group. Since all our hosts are in the `all` group, these variables are available everywhere.

## Pluggable Components

The platform supports pluggable implementations for several components:

### Kubernetes Distribution (`k8s_distribution`)
- **kind** (default): Deploy Kind cluster
- **existing**: Use existing cluster (skip provisioning)

### Artifact Registry (`artifact_registry`)
- **zot** (default): Deploy Zot OCI registry
- **harbor**: Deploy Harbor registry (not yet implemented)
- **none**: Skip artifact registry deployment

### EdgeCloud Platform (`edgecloud_platform`)
- **lite2edge** (default): Deploy lite2edge platform
- **i2edge**: Deploy i2edge platform
- **none**: Skip edgecloud platform deployment

## File Organization

### `all.yml` - Global Variables Only
@@ -41,10 +59,10 @@ Contains **only** truly global variables:

| File | Purpose | Type |
|------|---------|------|
| `kind_cluster.yml` | Kind cluster settings, K8s version, port mappings | Kubernetes Infrastructure |
| `k8s_cluster.yml` | K8s distribution, cluster settings, port mappings | Kubernetes Infrastructure |
| `monitoring.yml` | Prometheus, Grafana, Helm configuration | Monitoring Infrastructure |
| `node_feature_discovery.yml` | NFD version, namespaces, custom node labels | Node Management |
| `zot.yml` | Container registry | Artefact Registry Infrastructure |
| `zot.yml` | Artifact registry type, Zot configuration | Artifact Registry Infrastructure |

### OOP Core Modules

+3 −3
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
# This file contains ONLY global/shared variables used across all components.
# Component-specific variables are organized in separate files:
#
#   - kind_cluster.yml          : Kind cluster configuration and port mappings
#   - k8s_cluster.yml            : K8s cluster configuration (distro-agnostic)
#   - monitoring.yml            : Prometheus/Grafana monitoring stack
#   - node_feature_discovery.yml: NFD configuration and custom labels
#   - i2edge.yml                : i2edge application settings
@@ -25,8 +25,8 @@ i2edge_base_path: /home/sergio/i2cat/OperatorPlatform/i2edge
# ==========================================
# Docker Registry Configuration
# ==========================================
docker_registry: "gitlab.i2cat.net:5050"
docker_registry_path: "areas/software-networks/operator-platform"
# Registry host for Docker authentication (host:port only)
docker_registry_host: "gitlab.i2cat.net:5050"
docker_registry_username: "oauth2"

# ==========================================
+21 −9
Original line number Diff line number Diff line
---
# ==========================================
# Kind Cluster Configuration
# Kubernetes Cluster Configuration
# ==========================================
# This file contains all Kind-specific settings including cluster configuration,
# version, and port mappings for services exposed through the Kind cluster.
# This file contains all K8s cluster settings including distribution type,
# cluster configuration, and port mappings for services exposed through NodePorts.

# Kind cluster settings
kind_cluster_name: operator-platform
kind_version: v0.29.0
kind_binary_url: "https://kind.sigs.k8s.io/dl/{{ kind_version }}/kind-linux-amd64"
kind_install_path: /usr/local/bin/kind
# ==========================================
# Kubernetes Distribution
# ==========================================
# Supported values: 
#   - kind: Deploy and manage Kind cluster (default)
#   - existing: Use existing cluster (skip provisioning)
k8s_distribution: kind

# Kubernetes settings
# ==========================================
# Generic Cluster Settings (distro-agnostic)
# ==========================================
cluster_name: operator-platform
kubernetes_version: v1.33.1

# Cluster nodes configuration
control_plane_nodes: 1
worker_nodes: 2

# ==========================================
# Kind-Specific Settings (only used when k8s_distribution=kind)
# ==========================================
kind_version: v0.29.0
kind_binary_url: "https://kind.sigs.k8s.io/dl/{{ kind_version }}/kind-linux-amd64"
kind_install_path: /usr/local/bin/kind

# Port mappings - using parameterized NodePorts to avoid duplication
# These mappings expose services through the Kind cluster
port_mappings:
+15 −3
Original line number Diff line number Diff line
---
# ==========================================
# lite2edge Configuration
# EdgeCloud Platform Configuration
# ==========================================
# lite2edge is an edge cloud platform (similar to i2edge) that provides
# lightweight edge computing capabilities and service orchestration.
# Configuration for edge cloud platform deployment

# EdgeCloud Platform Type
# Supported values:
#   - lite2edge: Deploy lite2edge platform (default, lightweight)
#   - i2edge: Deploy i2edge platform (full-featured)
#   - none: Skip edgecloud platform deployment
edgecloud_platform: lite2edge

# ==========================================
# lite2edge Configuration (only used when edgecloud_platform=lite2edge)
# ==========================================
# lite2edge is a lightweight edge cloud platform that provides
# edge computing capabilities and service orchestration.

# Service NodePort
lite2edge_nodeport: 30081
+13 −1
Original line number Diff line number Diff line
---
# ==========================================
# Zot Registry Configuration
# Artifact Registry Configuration
# ==========================================
# Configuration for artifact/container registry deployment

# Artifact Registry Type
# Supported values:
#   - zot: Deploy Zot OCI-compliant registry (default, lightweight)
#   - harbor: Deploy Harbor registry (not yet implemented)
#   - none: Skip artifact registry deployment
artifact_registry: zot

# ==========================================
# Zot Registry Configuration (only used when artifact_registry=zot)
# ==========================================
# Zot is an OCI-compliant container registry (similar to Harbor).
# It provides secure storage and distribution of container images
Loading