129 lines
2.9 KiB
YAML
129 lines
2.9 KiB
YAML
global:
|
||
namespace: my-apps
|
||
imagePullSecrets: []
|
||
# Backend configuration
|
||
backend:
|
||
name: backend
|
||
replicaCount: 1
|
||
image:
|
||
repository: harbor.dvirlabs.com/my-apps/my-recipes-backend
|
||
pullPolicy: Always
|
||
tag: "develop-df7510d"
|
||
service:
|
||
type: ClusterIP
|
||
port: 8000
|
||
targetPort: 8000
|
||
resources:
|
||
requests:
|
||
cpu: 100m
|
||
memory: 128Mi
|
||
limits:
|
||
cpu: 500m
|
||
memory: 512Mi
|
||
env:
|
||
PYTHONUNBUFFERED: "1"
|
||
ingress:
|
||
enabled: true
|
||
className: "traefik"
|
||
annotations:
|
||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||
hosts:
|
||
- host: api-my-recipes.dvirlabs.com
|
||
paths:
|
||
- path: /
|
||
pathType: Prefix
|
||
tls:
|
||
- secretName: api-my-recipes-tls
|
||
hosts:
|
||
- api-my-recipes.dvirlabs.com
|
||
# Frontend configuration
|
||
frontend:
|
||
name: frontend
|
||
replicaCount: 1
|
||
image:
|
||
repository: harbor.dvirlabs.com/my-apps/my-recipes-frontend
|
||
pullPolicy: Always
|
||
tag: develop-df7510d
|
||
service:
|
||
type: ClusterIP
|
||
port: 80
|
||
targetPort: 80
|
||
env:
|
||
API_BASE: "https://api-my-recipes.dvirlabs.com"
|
||
resources:
|
||
requests:
|
||
cpu: 50m
|
||
memory: 64Mi
|
||
limits:
|
||
cpu: 200m
|
||
memory: 256Mi
|
||
ingress:
|
||
enabled: true
|
||
className: "traefik"
|
||
annotations:
|
||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||
hosts:
|
||
- host: my-recipes.dvirlabs.com
|
||
paths:
|
||
- path: /
|
||
pathType: Prefix
|
||
tls:
|
||
- secretName: my-recipes-tls
|
||
hosts:
|
||
- my-recipes.dvirlabs.com
|
||
# Admin user configuration
|
||
admin:
|
||
username: "admin"
|
||
email: "admin@myrecipes.local"
|
||
password: "admin123" # Change this password!
|
||
firstName: "Admin"
|
||
lastName: "User"
|
||
displayName: "מנהל"
|
||
# PostgreSQL configuration
|
||
postgres:
|
||
name: db
|
||
image:
|
||
repository: postgres
|
||
tag: "16"
|
||
pullPolicy: IfNotPresent
|
||
user: recipes_user
|
||
password: recipes_password # POC only – later use Secret/ExternalSecret
|
||
database: recipes_db
|
||
port: 5432
|
||
service:
|
||
type: ClusterIP
|
||
port: 5432
|
||
targetPort: 5432
|
||
persistence:
|
||
enabled: true
|
||
accessMode: ReadWriteOnce
|
||
storageClass: "nfs-client"
|
||
size: 8Gi
|
||
resources:
|
||
requests:
|
||
cpu: 100m
|
||
memory: 256Mi
|
||
limits:
|
||
cpu: 1000m
|
||
memory: 1Gi
|
||
# Ingress (top-level, disabled - use component-specific ingress instead)
|
||
ingress:
|
||
enabled: false
|
||
className: "traefik"
|
||
annotations:
|
||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||
hosts:
|
||
- host: my-recipes.dvirlabs.com
|
||
paths:
|
||
- path: /
|
||
pathType: Prefix
|
||
backend: frontend
|
||
tls:
|
||
- secretName: recipes-tls
|
||
hosts:
|
||
- my-recipes.dvirlabs.com
|