Update brand-master chart
This commit is contained in:
parent
0c2c939ed7
commit
e922754337
@ -22,7 +22,7 @@ spec:
|
|||||||
fsGroup: 999
|
fsGroup: 999
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: fix-permissions
|
- name: fix-permissions
|
||||||
image: harbor.dvirlabs.com/base-images/busybox:1.35
|
image: harbor.dvirlabs.com/dockerhub/busybox:latest
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@ -28,6 +28,16 @@ backend:
|
|||||||
PYTHONUNBUFFERED: "1"
|
PYTHONUNBUFFERED: "1"
|
||||||
BACKEND_URL: "https://api-brand-master.dvirlabs.com"
|
BACKEND_URL: "https://api-brand-master.dvirlabs.com"
|
||||||
FRONTEND_URL: "https://brand-master.dvirlabs.com"
|
FRONTEND_URL: "https://brand-master.dvirlabs.com"
|
||||||
|
# Admin user credentials (change in production!)
|
||||||
|
ADMIN_EMAIL: "admin@brand-master.com"
|
||||||
|
ADMIN_PASSWORD: "admin123" # CHANGE THIS!
|
||||||
|
ADMIN_FULL_NAME: "System Administrator"
|
||||||
|
# Email configuration for password reset (optional)
|
||||||
|
SMTP_HOST: "smtp.gmail.com"
|
||||||
|
SMTP_PORT: "587"
|
||||||
|
SMTP_USERNAME: ""
|
||||||
|
SMTP_PASSWORD: ""
|
||||||
|
SMTP_FROM: "noreply@brand-master.com"
|
||||||
|
|
||||||
# JWT Secret Key (IMPORTANT: Change this in production!)
|
# JWT Secret Key (IMPORTANT: Change this in production!)
|
||||||
jwtSecretKey: "your-secret-key-change-this-in-production"
|
jwtSecretKey: "your-secret-key-change-this-in-production"
|
||||||
@ -105,7 +115,7 @@ frontend:
|
|||||||
postgres:
|
postgres:
|
||||||
name: db
|
name: db
|
||||||
image:
|
image:
|
||||||
repository: harbor.dvirlabs.com/base-images/postgres
|
repository: harbor.dvirlabs.com/dockerhub/postgres
|
||||||
tag: "16-alpine"
|
tag: "16-alpine"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
|||||||
@ -1,43 +1,57 @@
|
|||||||
nameOverride: ""
|
|
||||||
fullnameOverride: ""
|
|
||||||
commonLabels: {}
|
|
||||||
commonAnnotations: {}
|
|
||||||
global:
|
global:
|
||||||
imagePullSecrets:
|
namespace: my-apps
|
||||||
- name: harbor-regcred
|
imagePullSecrets: []
|
||||||
|
|
||||||
|
# Backend configuration
|
||||||
backend:
|
backend:
|
||||||
|
name: backend
|
||||||
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: harbor.dvirlabs.com/my-apps/brand-master-backend
|
repository: harbor.dvirlabs.com/my-apps/brand-master-backend
|
||||||
tag: master-282e279
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
replicaCount: 1
|
tag: "latest"
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 1000m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 256Mi
|
|
||||||
env:
|
|
||||||
PYTHONUNBUFFERED: "1"
|
|
||||||
BACKEND_URL: "https://api-brand-master.dvirlabs.com"
|
|
||||||
FRONTEND_URL: "https://brand-master.dvirlabs.com"
|
|
||||||
jwtSecretKey: "your-secret-key-change-this-in-production"
|
|
||||||
jwtAlgorithm: "HS256"
|
|
||||||
jwtExpireMinutes: "30"
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
storageClass: "nfs-client"
|
|
||||||
size: 15Gi
|
|
||||||
mountPath: /app/uploads
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8000
|
port: 8000
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
healthCheck:
|
|
||||||
path: /health
|
resources:
|
||||||
initialDelaySeconds: 10
|
requests:
|
||||||
periodSeconds: 30
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 1000m
|
||||||
|
memory: 1Gi
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHONUNBUFFERED: "1"
|
||||||
|
BACKEND_URL: "https://api-brand-master.dvirlabs.com"
|
||||||
|
FRONTEND_URL: "https://brand-master.dvirlabs.com"
|
||||||
|
# Admin user credentials (change in production!)
|
||||||
|
ADMIN_EMAIL: "admin@brand-master.com"
|
||||||
|
ADMIN_PASSWORD: "admin123" # CHANGE THIS!
|
||||||
|
ADMIN_FULL_NAME: "System Administrator"
|
||||||
|
# Email configuration for password reset (optional)
|
||||||
|
SMTP_HOST: "smtp.gmail.com"
|
||||||
|
SMTP_PORT: "587"
|
||||||
|
SMTP_USERNAME: ""
|
||||||
|
SMTP_PASSWORD: ""
|
||||||
|
SMTP_FROM: "noreply@brand-master.com"
|
||||||
|
|
||||||
|
# JWT Secret Key (IMPORTANT: Change this in production!)
|
||||||
|
jwtSecretKey: "your-secret-key-change-this-in-production"
|
||||||
|
jwtAlgorithm: "HS256"
|
||||||
|
jwtExpireMinutes: "30"
|
||||||
|
|
||||||
|
# Persistent storage for product images
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
storageClass: "nfs-client"
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 15Gi
|
||||||
|
mountPath: /app/uploads
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "traefik"
|
className: "traefik"
|
||||||
@ -54,29 +68,32 @@ backend:
|
|||||||
- secretName: api-brand-master-tls
|
- secretName: api-brand-master-tls
|
||||||
hosts:
|
hosts:
|
||||||
- api-brand-master.dvirlabs.com
|
- api-brand-master.dvirlabs.com
|
||||||
|
|
||||||
|
# Frontend configuration
|
||||||
frontend:
|
frontend:
|
||||||
|
name: frontend
|
||||||
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: harbor.dvirlabs.com/my-apps/brand-master-frontend
|
repository: harbor.dvirlabs.com/my-apps/brand-master-frontend
|
||||||
tag: master-d0d9084
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
replicaCount: 1
|
tag: "latest"
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 256Mi
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 64Mi
|
|
||||||
env:
|
|
||||||
VITE_API_URL: "https://api-brand-master.dvirlabs.com"
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
healthCheck:
|
|
||||||
path: /
|
env:
|
||||||
initialDelaySeconds: 5
|
VITE_API_URL: "https://api-brand-master.dvirlabs.com"
|
||||||
periodSeconds: 30
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "traefik"
|
className: "traefik"
|
||||||
@ -93,25 +110,31 @@ frontend:
|
|||||||
- secretName: brand-master-tls
|
- secretName: brand-master-tls
|
||||||
hosts:
|
hosts:
|
||||||
- brand-master.dvirlabs.com
|
- brand-master.dvirlabs.com
|
||||||
|
|
||||||
|
# PostgreSQL configuration
|
||||||
postgres:
|
postgres:
|
||||||
name: db
|
name: db
|
||||||
image:
|
image:
|
||||||
repository: harbor.dvirlabs.com/base-images/postgres
|
repository: harbor.dvirlabs.com/dockerhub/postgres
|
||||||
tag: "16-alpine"
|
tag: "16-alpine"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
user: brand_master_user
|
user: brand_master_user
|
||||||
password: brand_master_password
|
password: brand_master_password
|
||||||
database: brand_master_db
|
database: brand_master_db
|
||||||
port: 5432
|
port: 5432
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
storageClass: "nfs-client"
|
storageClass: "nfs-client"
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
@ -119,3 +142,34 @@ postgres:
|
|||||||
limits:
|
limits:
|
||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
|
# Service Account
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
annotations: {}
|
||||||
|
name: ""
|
||||||
|
|
||||||
|
# Pod annotations
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# Pod security context
|
||||||
|
podSecurityContext: {}
|
||||||
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
# Container security context
|
||||||
|
securityContext: {}
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
|
||||||
|
# Node selector
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
# Tolerations
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
# Affinity
|
||||||
|
affinity: {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user