more robust k8s install #26
Open
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.
This pull request introduces significant updates to the repository to enhance deployment options for the n8n workflow automation tool. It includes the addition of
.gitattributes
for consistent line endings, comprehensive Kubernetes configurations, and updates to the documentation to reflect these changes. The Kubernetes configurations now support production-grade deployments with features like autoscaling, resource management, and security hardening.Deployment Configuration Updates:
Kubernetes Base Configurations:
kubernetes/base/kustomization.yaml
to define shared resources, including deployments for n8n UI, workers, Redis, and Postgres, along with services, PVCs, and secrets.n8n-deployment.yaml
andn8n-deployment-workers.yaml
to separate UI and worker deployments, enabling better scalability and resource allocation. Worker replicas increased to 2 with a rolling update strategy. [1] [2]redis-deployment.yaml
andredis-service.yaml
) with resource limits and readiness/liveness probes. [1] [2]Production Enhancements:
ScaledObject
configuration (n8n-worker-scaledobject.yaml
) for KEDA-based autoscaling of n8n workers using Prometheus metrics.n8n-servicemonitor.yaml
for Prometheus monitoring of n8n metrics.Documentation Updates:
Repository Overview:
README.md
to provide an overview of deployment options, including Docker Compose, Docker with Caddy, and Kubernetes. Added instructions for selecting the appropriate deployment method.Kubernetes Deployment Guide:
kubernetes/README.md
with detailed architecture, prerequisites, deployment structure, and instructions for configuring KEDA and Prometheus.Miscellaneous Enhancements:
Line Ending Normalization:
.gitattributes
to enforce consistent line endings across the repository and explicitly define binary file types.Security and Secrets:
n8n-secret.yaml
for managing sensitive data such as encryption keys.These changes collectively improve the scalability, maintainability, and deployment flexibility of the n8n automation tool.