Some checks failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline failed
Changes: - Add API_URL, FRONTEND_PORT, BACKEND_PORT env vars to deployment - Construct DATABASE_URL from PostgreSQL connection params - Construct REDIS_URL from Redis connection params (with/without password) - Add reflex.apiUrl config to values files: * Default: http://localhost:8000 * Staging: https://staging.peikarband.ir * Production: https://peikarband.ir - Add ENVIRONMENT to configMap This ensures rxconfig.py gets proper environment-specific configuration without hardcoding values. The app now works correctly in all environments (dev, staging, production) with appropriate URLs and settings.
68 lines
1.1 KiB
YAML
68 lines
1.1 KiB
YAML
# Staging-specific values for peikarband
|
|
|
|
replicaCount: 1
|
|
|
|
image:
|
|
pullPolicy: Always
|
|
|
|
# Reflex configuration for staging
|
|
reflex:
|
|
apiUrl: "https://staging.peikarband.ir" # Staging API URL
|
|
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
|
|
autoscaling:
|
|
enabled: false
|
|
|
|
ingress:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-staging"
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
hosts:
|
|
- host: staging.peikarband.ir
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: peikarband-staging-tls
|
|
hosts:
|
|
- staging.peikarband.ir
|
|
|
|
postgresql:
|
|
enabled: true
|
|
external:
|
|
host: "postgres-staging.default.svc.cluster.local"
|
|
port: "5432"
|
|
database: "peikarband_staging"
|
|
|
|
redis:
|
|
enabled: true
|
|
external:
|
|
host: "redis-staging.default.svc.cluster.local"
|
|
port: "6379"
|
|
|
|
configMap:
|
|
data:
|
|
APP_NAME: "peikarband-staging"
|
|
LOG_LEVEL: "debug"
|
|
ENVIRONMENT: "staging"
|
|
|
|
podDisruptionBudget:
|
|
enabled: false
|
|
|
|
networkPolicy:
|
|
enabled: false
|
|
|
|
monitoring:
|
|
serviceMonitor:
|
|
enabled: false
|
|
|