Repository navigation
Conversation
# Conflicts: # k8s/Makefile
…d persisted timers
# Conflicts: # k8s/Makefile # k8s/README.md # k8s/manifests/scaler.yaml
|
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.




Summary
Adds a Kubernetes runner prototype under
k8s/: Private Runners as Kubernetes pods, installed with a Helm chart and scaled by a small Go controller. The run controller still runs as an ECS task through ECS Anywhere, but workflow steps run as their own Kubernetes pods. Prototype only, not supported for customer use; it needs a run controller release with step broker support, which hasn't shipped yet.Changes
k8s/runner.sh,k8s/Dockerfile): registration viamain.sh, nested Docker for run controllers, SSM and ECS agents, drain and park through SG, Docker cache pruning, re-registration when the advertised size changes.k8s/scaler/internal/steps, Go): runs each step as a pod on the runner's node, mounting the run's workspace throughsubPath; a step wrapper turns exit codes 11/12 intoCompletedpods; finished pods keep an outcome label for an hour.k8s/scaler, Go): parks idle runners, wakes or adds runners on queued workflows, reaps long-parked ones; nudges node autoscalers that won't scale up for pods with persistent disks.k8s/chart/sg-runner, Kubernetes 1.29+): size presets, broker as a native sidecar, optional NetworkPolicy, uninstall hook that deregisters every runner..github/workflows/k8s.yml): Go tests, chart lint and kubeconform, multi-arch image builds, Trivy, and a kind smoke install with a broker stage.main.sh(affects VM runners too): private IP detection from the outbound route, and error reports no longer retry themselves when the API is down.Testing
Risks
main.shchanges reach VM runners: private IP detection and error-report handling. Covered by new bats tests.Deployment Notes