-
Notifications
You must be signed in to change notification settings - Fork 129
feat: k8s self hosting #3276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: k8s self hosting #3276
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: Kubernetes Run Scripts & ManifestsThank you for this contribution! This adds comprehensive Kubernetes deployment support which is a valuable addition. Here's my detailed review: 🎯 Overall AssessmentStrengths:
Issues Found: Several critical issues need addressing before merge. 🔴 Critical Issues1. Justfile Bug -
|
| Category | Status |
|---|---|
| Code Quality | |
| Security | |
| Documentation | ✅ Good |
| Test Coverage | ❌ Missing |
| Best Practices |
Recommendation: Request changes to address critical issues, especially the justfile bug and missing deployments in the script.
Great work overall! The foundation is solid and this will be a valuable addition once the issues are addressed.
More templates
@rivetkit/actor
@rivetkit/cloudflare-workers
@rivetkit/core
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
ca30bde to
d981bc6
Compare
PR Review: Kubernetes Self-Hosting SetupGreat work on adding Kubernetes deployment support! This is a solid foundation for self-hosting Rivet on Kubernetes. Below is my feedback organized by category. 🐛 Critical Issues1. Justfile
|
d981bc6 to
1d43bd0
Compare
PR Review: Kubernetes Self-Hosting SetupThank you for this comprehensive K8s deployment implementation! This is a great addition for self-hosting. Here's my detailed review: 🎯 Overall AssessmentThis PR successfully adds Kubernetes deployment capabilities with a well-structured approach separating main engine services from singleton services. The implementation is solid, but there are several areas that need attention before merging. 🔴 Critical Issues1. Justfile Bug - Incorrect docker-stop CommandLocation: The docker-stop:
docker run -p 6420:6420 -e RIVET__AUTH__ADMIN_TOKEN=dev -e RUST_LOG=debug rivetkit/engine:localThis should be using Suggested fix: docker-stop:
docker ps -q --filter ancestor=rivetkit/engine:local | xargs -r docker stop2. Hardcoded Placeholder Not ReplacedLocation: The annotation contains a placeholder: checksum/config: REPLACE_WITH_CONFIG_CHECKSUMThis should either be:
The deployment script 3. Missing NATS DeploymentLocation: The NATS manifests (07-09) exist but are never applied by the deployment script. NATS is a critical dependency for Rivet's service communication, yet the script skips deploying it entirely. This will cause the engine to fail at runtime. Fix: Add NATS deployment to # After postgres deployment
kubectl apply -f 07-nats-configmap.yaml
kubectl apply -f 08-nats-statefulset.yaml
kubectl apply -f 09-nats-service.yaml
# Wait for NATS
echo "Waiting for NATS to be ready..."
kubectl -n "${NAMESPACE}" wait --for=condition=ready pod -l app=nats --timeout=300s
|
1d43bd0 to
25b2df9
Compare
Merge activity
|
Pull Request Review: K8s Self Hosting SetupThanks for adding Kubernetes support for Rivet Engine! This is a substantial feature addition that will enable users to self-host on Kubernetes. Here's my detailed review: 🎯 Overall AssessmentThis PR provides a solid foundation for Kubernetes deployments with good separation of concerns between main engine and singleton services. The documentation is comprehensive and the deployment scripts are well-structured. 🐛 Critical Issues1. Bug in justfile - Wrong Command in docker-stopLocation: justfile:18-19 The docker-stop command is running docker run instead of docker stop. This will start a new container rather than stopping an existing one.
|
K8s self hosting setup

K8s self hosting setup