Deployment
Kubernetes Deployment
A planned guide for deploying a hosted Dits server on Kubernetes, intended for scalability, high availability, and automated operations.
Important
Planned — not yet available. There is no Dits server image or Helm chart to deploy today. The
charts.dits.io repository, the dits/dits-serverimage, and the manifests below are part of the roadmap and have not been built. Dits today is a local-first Rust CLI — there is nothing to run on a cluster. Treat this page as a design sketch of the intended architecture, not as working deployment instructions. Do not depend on it yet.Prerequisites
- Kubernetes cluster 1.24+
- kubectl configured
- Helm 3.x (optional but recommended)
- Persistent storage provisioner
Helm Installation
Add the Dits Helm Repository
# Add repository
helm repo add dits https://charts.dits.io
helm repo update
# Install with default values
helm install dits dits/dits-server
# Or customize with values file
helm install dits dits/dits-server -f values.yamlExample values.yaml
replicaCount: 3
image:
repository: dits/dits-server
tag: latest
pullPolicy: IfNotPresent
resources:
limits:
cpu: 2000m
memory: 4Gi
requests:
cpu: 500m
memory: 1Gi
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 70
postgresql:
enabled: true
auth:
postgresPassword: changeme
database: dits
redis:
enabled: true
auth:
enabled: false
persistence:
enabled: true
size: 100Gi
storageClass: standard
ingress:
enabled: true
className: nginx
hosts:
- host: dits.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: dits-tls
hosts:
- dits.example.comManual Kubernetes Manifests
Scaling
Monitoring
Dits exposes Prometheus metrics at /metrics. Configure a ServiceMonitor for automatic scraping:
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: dits-monitor
spec:
selector:
matchLabels:
app: dits
endpoints:
- port: http
path: /metrics
interval: 30sCloud Provider Integration
For managed Kubernetes services (GKE, EKS, AKS), see our cloud-specific deployment guides for optimized configurations.