- Opzet cluster werkt

- Opstart redis en minio werkt
- Bezig om eigenlijke apps op te starten ... werkt nog niet.
This commit is contained in:
Josako
2025-08-19 18:08:59 +02:00
parent 84a9334c80
commit d6a2635e50
15 changed files with 574 additions and 602 deletions

View File

@@ -4,19 +4,26 @@
This implementation provides a comprehensive Kubernetes service management system inspired by your `podman_env_switch.sh` workflow. It allows you to easily manage EveAI services across different environments with simple, memorable commands.
**✅ Latest Update (August 2025):** The system has been enhanced with structured deployment functionality, consolidating all features from `deploy-all-services.sh` into the main `k8s_env_switch.sh` system. This eliminates duplicate maintenance and provides a unified interface for all service management operations.
## 🚀 Quick Start
```bash
# Switch to dev environment
source k8s/k8s_env_switch.sh dev
# Start all services
kup
# Structured deployment (recommended - replaces deploy-all-services.sh)
kup-all-structured
# Check status
# Test connectivity and show connection info
ktest
kinfo
# Traditional service group management
kup apps
kps
# Start individual services
# Individual service management
kup-api
kup-workers
@@ -33,17 +40,25 @@ klogs eveai-app
k8s/
├── k8s_env_switch.sh # Main script (like podman_env_switch.sh)
├── scripts/
│ ├── k8s-functions.sh # Core service management functions
│ ├── k8s-functions.sh # Core service management functions (enhanced)
│ ├── service-groups.sh # Service group definitions
│ ├── dependency-checks.sh # Dependency validation
│ └── logging-utils.sh # Logging utilities
├── dev/ # Dev environment configs
│ ├── setup-dev-cluster.sh # Existing cluster setup
│ ├── deploy-all-services.sh # Existing deployment script
│ ├── setup-dev-cluster.sh # Cluster setup script
│ ├── deploy-all-services.sh # Legacy script (functionality moved to k8s_env_switch.sh)
│ └── *.yaml # Service configurations
└── test-k8s-functions.sh # Test script
```
### 🔄 Consolidation Benefits
- **✅ No Duplicate Maintenance** - Single system for all service management
- **✅ Enhanced Functionality** - All deploy-all-services.sh features integrated
- **✅ Consistent Interface** - Unified command structure across operations
- **✅ Better User Experience** - Clear, memorable commands with comprehensive help
- **✅ Future-Ready** - Multi-environment support and extensibility
## 🔧 Environment Setup
### Supported Environments
@@ -87,6 +102,13 @@ k8s/
## 🎯 Core Commands
### Structured Deployment (Recommended)
```bash
kup-all-structured # Deploy all services in structured order (replaces deploy-all-services.sh)
ktest # Test service connectivity via Ingress
kinfo # Show connection information and service URLs
```
### Service Group Management
```bash
kup [group] # Start service group