- changes toward a fully functional k8s cluster. First running version of cluster, addition of services works, additional changes to app required.
This commit is contained in:
108
k8s/dev/kind-dev-cluster.yaml
Normal file
108
k8s/dev/kind-dev-cluster.yaml
Normal file
@@ -0,0 +1,108 @@
|
||||
# Kind configuration for EveAI Dev Environment
|
||||
# File: kind-dev-cluster.yaml
|
||||
kind: Cluster
|
||||
apiVersion: kind.x-k8s.io/v1alpha4
|
||||
name: eveai-dev-cluster
|
||||
networking:
|
||||
# API server configuration
|
||||
apiServerAddress: "127.0.0.1"
|
||||
apiServerPort: 3000
|
||||
|
||||
# Pod subnet (avoid conflicts with host network)
|
||||
podSubnet: "10.244.0.0/16"
|
||||
serviceSubnet: "10.96.0.0/12"
|
||||
|
||||
nodes:
|
||||
- role: control-plane
|
||||
# Extra port mappings to host (minty) according to port schema 3000-3999
|
||||
extraPortMappings:
|
||||
# Nginx - Main entry point
|
||||
- containerPort: 80
|
||||
hostPort: 3080
|
||||
protocol: TCP
|
||||
- containerPort: 443
|
||||
hostPort: 3443
|
||||
protocol: TCP
|
||||
|
||||
# EveAI App
|
||||
- containerPort: 30001
|
||||
hostPort: 3001
|
||||
protocol: TCP
|
||||
|
||||
# EveAI API
|
||||
- containerPort: 30003
|
||||
hostPort: 3003
|
||||
protocol: TCP
|
||||
|
||||
# EveAI Chat Client
|
||||
- containerPort: 30004
|
||||
hostPort: 3004
|
||||
protocol: TCP
|
||||
|
||||
# Redis
|
||||
- containerPort: 30006
|
||||
hostPort: 3006
|
||||
protocol: TCP
|
||||
|
||||
# Flower (Celery monitoring)
|
||||
- containerPort: 30007
|
||||
hostPort: 3007
|
||||
protocol: TCP
|
||||
|
||||
# MinIO S3 API
|
||||
- containerPort: 30008
|
||||
hostPort: 3008
|
||||
protocol: TCP
|
||||
|
||||
# MinIO Console
|
||||
- containerPort: 30009
|
||||
hostPort: 3009
|
||||
protocol: TCP
|
||||
|
||||
# Prometheus
|
||||
- containerPort: 30010
|
||||
hostPort: 3010
|
||||
protocol: TCP
|
||||
|
||||
# Pushgateway
|
||||
- containerPort: 30011
|
||||
hostPort: 3011
|
||||
protocol: TCP
|
||||
|
||||
# Grafana
|
||||
- containerPort: 30012
|
||||
hostPort: 3012
|
||||
protocol: TCP
|
||||
|
||||
# Mount points for persistent data on host
|
||||
extraMounts:
|
||||
# MinIO data persistence
|
||||
- hostPath: $HOME/k8s-data/dev/minio
|
||||
containerPath: /mnt/minio-data
|
||||
# Redis data persistence
|
||||
- hostPath: $HOME/k8s-data/dev/redis
|
||||
containerPath: /mnt/redis-data
|
||||
# Application logs
|
||||
- hostPath: $HOME/k8s-data/dev/logs
|
||||
containerPath: /mnt/app-logs
|
||||
# Prometheus data
|
||||
- hostPath: $HOME/k8s-data/dev/prometheus
|
||||
containerPath: /mnt/prometheus-data
|
||||
# Grafana data
|
||||
- hostPath: $HOME/k8s-data/dev/grafana
|
||||
containerPath: /mnt/grafana-data
|
||||
# mkcert CA certificate
|
||||
- hostPath: $HOME/k8s-data/dev/certs
|
||||
containerPath: /usr/local/share/ca-certificates
|
||||
|
||||
# Configure registry access
|
||||
containerdConfigPatches:
|
||||
- |-
|
||||
[plugins."io.containerd.grpc.v1.cri".registry]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.ask-eve-ai-local.com"]
|
||||
endpoint = ["https://registry.ask-eve-ai-local.com"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs."registry.ask-eve-ai-local.com".tls]
|
||||
ca_file = "/usr/local/share/ca-certificates/mkcert-ca.crt"
|
||||
insecure_skip_verify = false
|
||||
Reference in New Issue
Block a user