Update k8s/dev/backoffice-deployment-dev.yaml
This commit is contained in:
parent
b07cf94dcb
commit
8a15a5fc32
1 changed files with 3 additions and 4 deletions
|
|
@ -19,8 +19,8 @@ spec:
|
|||
initContainers:
|
||||
- name: set-mtu
|
||||
image: busybox
|
||||
# CORREÇÃO: Usando ${MTU_VALUE} para que o ifconfig receba o número do MTU
|
||||
command: ['sh', '-c', 'ifconfig eth0 mtu ${MTU_VALUE} || true']
|
||||
# CORREÇÃO: Usando $(VAR) para o Kubernetes injetar o valor corretamente
|
||||
command: ['sh', '-c', 'ifconfig eth0 mtu $(MTU_VALUE) || true']
|
||||
env:
|
||||
- name: MTU_VALUE
|
||||
valueFrom:
|
||||
|
|
@ -35,7 +35,6 @@ spec:
|
|||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3001
|
||||
# Injeta todas as variáveis (DATABASE_URL, JWT, etc.) automaticamente
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: backend-secrets
|
||||
|
|
@ -44,7 +43,7 @@ spec:
|
|||
value: "0"
|
||||
resources:
|
||||
requests:
|
||||
memory: "800Mi"
|
||||
memory: "512Mi" # Reduzi um pouco o request para facilitar o agendamento no nó
|
||||
cpu: "300m"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
|
|
|
|||
Loading…
Reference in a new issue