71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
# Kind cluster configuration for HeiCode-Swarm local testing
|
|
# Optimized for agent pod testing with proper resource isolation
|
|
|
|
kind: Cluster
|
|
apiVersion: kind.x-k8s.io/v1alpha4
|
|
name: heicode-swarm-test
|
|
|
|
# Multi-node setup for realistic pod scheduling
|
|
nodes:
|
|
# Control plane node
|
|
- role: control-plane
|
|
kubeadmConfigPatches:
|
|
- |
|
|
kind: InitConfiguration
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
node-labels: "node-role=control-plane"
|
|
extraPortMappings:
|
|
# Expose orchestrator service for desktop client access
|
|
- containerPort: 30080
|
|
hostPort: 8080
|
|
protocol: TCP
|
|
# Expose Redis for debugging (optional)
|
|
- containerPort: 30379
|
|
hostPort: 6379
|
|
protocol: TCP
|
|
|
|
# Worker nodes for agent pods
|
|
- role: worker
|
|
kubeadmConfigPatches:
|
|
- |
|
|
kind: JoinConfiguration
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
node-labels: "node-role=worker,workload=agents"
|
|
# Resource limits per worker to simulate realistic constraints
|
|
extraMounts:
|
|
- hostPath: /tmp/heicode-swarm-cache
|
|
containerPath: /var/lib/containerd
|
|
|
|
- role: worker
|
|
kubeadmConfigPatches:
|
|
- |
|
|
kind: JoinConfiguration
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
node-labels: "node-role=worker,workload=agents"
|
|
|
|
# Networking configuration
|
|
networking:
|
|
# Disable default CNI to use kindnet (faster startup)
|
|
disableDefaultCNI: false
|
|
# Pod subnet
|
|
podSubnet: "10.244.0.0/16"
|
|
# Service subnet
|
|
serviceSubnet: "10.96.0.0/12"
|
|
|
|
# Feature gates for testing
|
|
featureGates:
|
|
# Enable ephemeral containers for debugging
|
|
EphemeralContainers: true
|
|
|
|
# Runtime configuration
|
|
containerdConfigPatches:
|
|
- |-
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
|
|
endpoint = ["http://localhost:5000"]
|
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
|
# Increase max concurrent downloads for faster image pulls
|
|
max_concurrent_downloads = 10
|