gohorsejobs/k8s/dev/backoffice-deployment-dev.yaml
2026-02-07 22:59:34 +00:00

62 lines
No EOL
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gohorse-backoffice-dev
namespace: gohorsejobsdev
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: gohorse-backoffice-dev
template:
metadata:
labels:
app: gohorse-backoffice-dev
env: development
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
terminationGracePeriodSeconds: 10
imagePullSecrets:
- name: forgejo-registry-secret
containers:
- name: backoffice
image: pipe.gohorsejobs.com/bohessefm/backoffice:latest
imagePullPolicy: Always
ports:
- containerPort: 3001
envFrom:
- secretRef:
name: backend-secrets
env:
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: "0"
- name: NODE_ENV
value: "production"
# Removidas as flags de semi-space que causaram o erro
- name: NODE_OPTIONS
value: "--max-old-space-size=1536"
resources:
requests:
memory: "1536Mi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /health
port: 3001
initialDelaySeconds: 80
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 3001
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 3