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:
|
initContainers:
|
||||||
- name: set-mtu
|
- name: set-mtu
|
||||||
image: busybox
|
image: busybox
|
||||||
# CORREÇÃO: Usando ${MTU_VALUE} para que o ifconfig receba o número do MTU
|
# CORREÇÃO: Usando $(VAR) para o Kubernetes injetar o valor corretamente
|
||||||
command: ['sh', '-c', 'ifconfig eth0 mtu ${MTU_VALUE} || true']
|
command: ['sh', '-c', 'ifconfig eth0 mtu $(MTU_VALUE) || true']
|
||||||
env:
|
env:
|
||||||
- name: MTU_VALUE
|
- name: MTU_VALUE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
@ -35,7 +35,6 @@ spec:
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3001
|
- containerPort: 3001
|
||||||
# Injeta todas as variáveis (DATABASE_URL, JWT, etc.) automaticamente
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: backend-secrets
|
name: backend-secrets
|
||||||
|
|
@ -44,7 +43,7 @@ spec:
|
||||||
value: "0"
|
value: "0"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "800Mi"
|
memory: "512Mi" # Reduzi um pouco o request para facilitar o agendamento no nó
|
||||||
cpu: "300m"
|
cpu: "300m"
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue