Add kubernetes executor infrastructure (Phase 1)#32
Merged
Conversation
Contributor
llambeau
commented
Jan 29, 2026
- Add 'kubernetes' to executor types in schema
- Add KubernetesConfig and ComponentKubernetesConfig to schema
- Implement PodExecOperation for executing commands in K8s pods
- Implement GetComponentPodOperation for resolving component to pod
- Add resolveNamespace utility (CLI > K8S_NAMESPACE env > config > default)
- Update MonorepoConfig to include kubernetes configuration
fd3c931 to
32429f6
Compare
This adds a new executor type that allows tasks to run on Kubernetes pods,
complementing the existing 'local' and 'container' (docker-compose) executors.
Features:
- New --executor kubernetes flag for `emb tasks run`
- Automatic pod and container discovery based on component configuration
- Configurable label selector via component kubernetes.selector
- Configurable default label via defaults.kubernetes.selectorLabel
- Namespace resolution: CLI flag > K8S_NAMESPACE env > config > 'default'
- Interactive task support with proper TTY handling
- SIGINT handling for graceful termination
New operations:
- GetComponentPodOperation: Resolves component to ready pod and container
- PodExecOperation: Executes commands in pods via WebSocket
Configuration (in .emb.yml):
defaults:
kubernetes:
namespace: production
selectorLabel: app.kubernetes.io/component # default
components:
api:
kubernetes:
selector: app=custom-api # override default selector
container: main # for multi-container pods
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32429f6 to
0bc91c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.