9937ee457d
- Add helm/kubectl binaries and chart directory to backend Dockerfile - Extend Helm templates for MongoDB/MariaDB database support (env vars, probes, ports) - Add Redis and RabbitMQ Helm templates (deployment, service, secret, PVC) - Add generic app-storage PVC and Fluent Bit sidecar with ES authentication - Fix imagePullSecrets in K8s API fallback, prevent secret regeneration on redeploy - Clean up Redis/RabbitMQ/FluentBit resources on app deletion without removing shared secrets - Fix HelmService chartPath resolution for production Docker builds Co-authored-by: Cursor <cursoragent@cursor.com>
88 lines
3.3 KiB
YAML
88 lines
3.3 KiB
YAML
# ────────────────────────────────────────────────────────────
|
|
# CloudHost Application — default Helm values
|
|
# These are overridden per-app at install/upgrade time.
|
|
# ────────────────────────────────────────────────────────────
|
|
|
|
# ── Application ──────────────────────────────────────────
|
|
app:
|
|
name: my-app
|
|
namespace: user-default
|
|
runtime: nodejs # nodejs | laravel | wordpress | go | php | python | django | dotnet
|
|
image: "" # e.g. registry.example.com/my-app:v1
|
|
port: 3000
|
|
replicas: 1
|
|
storageSize: "2Gi" # PVC size for app files (uploads, media, data)
|
|
|
|
# ── Resources ────────────────────────────────────────────
|
|
resources:
|
|
cpuRequest: "100m"
|
|
cpuLimit: "500m"
|
|
memoryRequest: "128Mi"
|
|
memoryLimit: "512Mi"
|
|
|
|
# ── Environment variables (injected via Secret) ─────────
|
|
envVars: {}
|
|
# KEY: value
|
|
|
|
# ── Ingress ──────────────────────────────────────────────
|
|
ingress:
|
|
enabled: true
|
|
subdomain: "" # <subdomain>.<domain>
|
|
domain: "apps.cloudhost.ir"
|
|
clusterIssuer: letsencrypt-prod
|
|
|
|
# ── Database (MySQL or PostgreSQL) ───────────────────────
|
|
database:
|
|
enabled: false
|
|
type: postgresql # mysql | postgresql
|
|
version: "16" # postgres version or mysql version
|
|
image: "" # auto-computed if empty
|
|
port: 5432 # 5432 for pg, 3306 for mysql
|
|
username: appuser
|
|
password: ""
|
|
storageSize: "1Gi"
|
|
resources:
|
|
cpuRequest: "100m"
|
|
cpuLimit: "500m"
|
|
memoryRequest: "256Mi"
|
|
memoryLimit: "512Mi"
|
|
|
|
# ── WordPress-specific ───────────────────────────────────
|
|
wordpress:
|
|
enabled: false
|
|
wpContentStorageSize: "2Gi"
|
|
|
|
# ── Redis ──────────────────────────────────────────────
|
|
redis:
|
|
enabled: false
|
|
version: "7.2"
|
|
storageSize: "1Gi"
|
|
resources:
|
|
cpuRequest: "50m"
|
|
cpuLimit: "200m"
|
|
memoryRequest: "64Mi"
|
|
memoryLimit: "256Mi"
|
|
|
|
# ── RabbitMQ ──────────────────────────────────────────
|
|
rabbitmq:
|
|
enabled: false
|
|
version: "3.13"
|
|
storageSize: "2Gi"
|
|
resources:
|
|
cpuRequest: "100m"
|
|
cpuLimit: "500m"
|
|
memoryRequest: "256Mi"
|
|
memoryLimit: "512Mi"
|
|
|
|
# ── Elasticsearch (Fluent Bit sidecar for logging) ────
|
|
elasticsearch:
|
|
enabled: false
|
|
logPaths: []
|
|
|
|
# ── Change metadata ─────────────────────────────────────
|
|
changeCause: ""
|
|
|
|
# ── Registry (for imagePullSecret) ──────────────────────
|
|
registry:
|
|
url: "localhost:30500"
|