feat: Add Kubernetes Runner Support with Helm Deployment#199
Closed
amustaque97 wants to merge 5 commits intoopen-runtimes:mainfrom
Closed
feat: Add Kubernetes Runner Support with Helm Deployment#199amustaque97 wants to merge 5 commits intoopen-runtimes:mainfrom
amustaque97 wants to merge 5 commits intoopen-runtimes:mainfrom
Conversation
Contributor
Author
|
CodeQL stage failure is expected because this PR utopia-php/orchestration#62 has not been merged yet. Once this is merged, we need to bump up the versions in the diff --git a/composer.json b/composer.json
index a81ff0b..f7359b4 100644
--- a/composer.json
+++ b/composer.json
@@ -18,6 +18,12 @@
"./vendor/bin/phpunit --configuration phpunit.xml --debug"
]
},
+ "repositories": [
+ {
+ "type": "vcs",
+ "url": "https://github.com/amustaque97/orchestration.git"
+ }
+ ],
"require": {
"php": ">=8.3.0",
"ext-curl": "*",
@@ -31,7 +37,7 @@
"utopia-php/registry": "0.5.*",
"utopia-php/preloader": "0.2.*",
"utopia-php/system": "0.9.*",
- "utopia-php/orchestration": "0.14.*",
+ "utopia-php/orchestration": "dev-k8s-adapter",
"appwrite/php-runtimes": "0.19.*",
"utopia-php/config": "^0.2.2"
}, |
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.

Related to: open-runtimes/open-runtimes#101
🎯 Overview
Adds Kubernetes support to OpenRuntimes Executor, enabling serverless functions to run as Kubernetes pods. Includes a production-ready Helm chart with RBAC, shared storage, and auto-scaling capabilities.
What's New
OPR_EXECUTOR_RUNNERenvironment variableKubernetes.phprunner usingutopia-php/orchestrationdeploy/with 12 templates (Deployment, Service, Ingress, RBAC, PVC, HPA, etc.)Key Features
✅ Full API compatibility with Docker runner
✅ RBAC-based pod management
✅ Auto-scaling with HPA
✅ Shared storage for multi-pod function execution
✅ Local testing with Kind
✅ Zero breaking changes (backward compatible)
Files Changed
Added:
src/Executor/Runner/Kubernetes.php- Kubernetes runner implementationdeploy/- Complete Helm chart with templates and values filesMakefile- Kubernetes build and deployment automationtest-k8s-quick.sh- API validation script (This script was used for testing purpose, after review I will be removing it.)Modified:
app/http.php- Unified runner initializationDockerfile- Added kubectl and build toolsdocker-compose.yml- Added K8s environment variablesREADME.md- Kubernetes deployment documentationConfiguration
Quick Start
Testing
Breaking Changes: None
Migration Required: No (opt-in feature)
Backward Compatible: Yes