26 lines
945 B
Markdown
26 lines
945 B
Markdown
|
|
# Task ID: 141
|
||
|
|
|
||
|
|
**Title:** Kubernetes orchestrator ephemeral pod support
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** 140
|
||
|
|
|
||
|
|
**Priority:** high
|
||
|
|
|
||
|
|
**Description:** Update KubernetesOrchestrator to handle new ContainerSpec fields in generatePodSpec
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
In src/mcpd/src/services/k8s/manifest-generator.ts and KubernetesOrchestrator:
|
||
|
|
1. Update generatePodSpec to use spec.restartPolicy if provided (default 'Always' unchanged)
|
||
|
|
2. Add workingDir to container spec if workdir provided
|
||
|
|
3. Add volumes array for emptyDir volumes
|
||
|
|
4. Add volumeMounts to main container
|
||
|
|
5. Add initContainers array with their own volumeMounts
|
||
|
|
6. Ensure init containers complete before main container starts (Kubernetes handles this)
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Unit tests: test generatePodSpec output includes restartPolicy, volumes, initContainers when provided. Integration test against test cluster: create pod with init container, verify init completes before main starts.
|