try to set the values similiar to my-recipes
This commit is contained in:
parent
b1613501a4
commit
7064d8f5bc
@ -1,127 +1,136 @@
|
|||||||
# Default values for dating-app Helm chart
|
# Default values for dating-app Helm chart
|
||||||
|
# This structure mirrors the my-recipes chart for consistency
|
||||||
|
|
||||||
# Global settings
|
|
||||||
global:
|
global:
|
||||||
domain: example.com
|
namespace: dating-app
|
||||||
|
imagePullSecrets: []
|
||||||
# PostgreSQL configuration
|
|
||||||
postgres:
|
|
||||||
enabled: true
|
|
||||||
image: postgres:15-alpine
|
|
||||||
replicas: 1
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
size: 10Gi
|
|
||||||
storageClass: ""
|
|
||||||
credentials:
|
|
||||||
username: dating_app_user
|
|
||||||
password: Aa123456
|
|
||||||
database: dating_app
|
|
||||||
service:
|
|
||||||
port: 5432
|
|
||||||
|
|
||||||
# Backend configuration
|
# Backend configuration
|
||||||
backend:
|
backend:
|
||||||
|
name: backend
|
||||||
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: dating-app-backend
|
repository: harbor.dvirlabs.com/dating-app/dating-app-backend
|
||||||
tag: latest
|
pullPolicy: Always
|
||||||
pullPolicy: IfNotPresent
|
tag: develop-latest
|
||||||
replicas: 2
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
service:
|
service:
|
||||||
|
type: ClusterIP
|
||||||
port: 8000
|
port: 8000
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
type: ClusterIP
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
env:
|
||||||
|
PYTHONUNBUFFERED: "1"
|
||||||
|
JWT_SECRET: "your-secret-key-change-in-production"
|
||||||
|
JWT_EXPIRES_MINUTES: "1440"
|
||||||
|
MEDIA_DIR: "/app/media"
|
||||||
|
CORS_ORIGINS: "http://localhost:5173,http://localhost:3000,http://localhost,https://dateme.dvirlabs.com"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
className: "traefik"
|
||||||
host: api-dateme.dvirlabs.com
|
annotations:
|
||||||
path: /
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
hosts:
|
||||||
|
- host: api-dateme.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
environment:
|
tls:
|
||||||
JWT_SECRET: your-secret-key-change-in-production
|
- secretName: api-dateme-tls
|
||||||
JWT_EXPIRES_MINUTES: "1440"
|
hosts:
|
||||||
MEDIA_DIR: /app/media
|
- api-dateme.dvirlabs.com
|
||||||
CORS_ORIGINS: "http://localhost:5173,http://localhost:3000,http://localhost,https://dateme.dvirlabs.com"
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
storageClass: "nfs-client"
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
storageClass: ""
|
|
||||||
mountPath: /app/media
|
mountPath: /app/media
|
||||||
probes:
|
|
||||||
readiness:
|
|
||||||
enabled: true
|
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
liveness:
|
|
||||||
enabled: true
|
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 30
|
|
||||||
|
|
||||||
# Frontend configuration
|
# Frontend configuration
|
||||||
frontend:
|
frontend:
|
||||||
|
name: frontend
|
||||||
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: dating-app-frontend
|
repository: harbor.dvirlabs.com/dating-app/dating-app-frontend
|
||||||
tag: latest
|
pullPolicy: Always
|
||||||
pullPolicy: IfNotPresent
|
tag: develop-latest
|
||||||
replicas: 2
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
limits:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "200m"
|
|
||||||
service:
|
service:
|
||||||
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
type: ClusterIP
|
env:
|
||||||
|
VITE_API_URL: "https://api-dateme.dvirlabs.com"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
className: "traefik"
|
||||||
host: dateme.dvirlabs.com
|
annotations:
|
||||||
path: /
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
hosts:
|
||||||
|
- host: dateme.dvirlabs.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
environment:
|
tls:
|
||||||
VITE_API_URL: "https://api-dateme.dvirlabs.com"
|
- secretName: dateme-tls
|
||||||
probes:
|
hosts:
|
||||||
readiness:
|
- dateme.dvirlabs.com
|
||||||
enabled: true
|
externalUrl: "https://dateme.dvirlabs.com"
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 10
|
|
||||||
liveness:
|
|
||||||
enabled: true
|
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 30
|
|
||||||
|
|
||||||
# Ingress configuration
|
# PostgreSQL configuration
|
||||||
ingress:
|
postgres:
|
||||||
|
name: db
|
||||||
|
image:
|
||||||
|
repository: postgres
|
||||||
|
tag: "16"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
user: dating_user
|
||||||
|
password: dating_password # POC only – later use Secret/ExternalSecret
|
||||||
|
database: dating_app
|
||||||
|
port: 5432
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 5432
|
||||||
|
targetPort: 5432
|
||||||
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
accessMode: ReadWriteOnce
|
||||||
|
storageClass: "nfs-client"
|
||||||
|
size: 10Gi
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
|
||||||
|
# Ingress (top-level, disabled - use component-specific ingress instead)
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
className: "traefik"
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
hosts:
|
||||||
# ConfigMap for shared configuration
|
- host: dateme.dvirlabs.com
|
||||||
configmap:
|
paths:
|
||||||
enabled: true
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
# Secret for sensitive data (use external secrets in production)
|
tls:
|
||||||
secrets:
|
- secretName: dateme-tls
|
||||||
enabled: true
|
hosts:
|
||||||
|
- dateme.dvirlabs.com
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user