Update backoffice-deployment-dev.yaml
Ajuste mtu no backoffice
This commit is contained in:
parent
7ac4c8628f
commit
3539271039
1 changed files with 22 additions and 3 deletions
|
|
@ -16,15 +16,34 @@ spec:
|
|||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-registry
|
||||
# --- AJUSTE DE REDE (MTU) ---
|
||||
initContainers:
|
||||
- name: set-mtu
|
||||
image: busybox
|
||||
command: ['sh', '-c', 'ifconfig eth0 mtu $(MTU_VALUE)']
|
||||
env:
|
||||
- name: MTU_VALUE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backend-secrets
|
||||
key: MTU
|
||||
securityContext:
|
||||
privileged: true
|
||||
# --- FIM DO AJUSTE ---
|
||||
containers:
|
||||
- name: backoffice
|
||||
image: in.gohorsejobs.com/gohorsejobs-backoffice-dev/backoffice:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3001 # Ajustado para a porta correta do Backoffice
|
||||
- containerPort: 3001
|
||||
env:
|
||||
- name: NODE_TLS_REJECT_UNAUTHORIZED
|
||||
value: "0" # Resolve o problema de "self-signed certificate" no banco
|
||||
value: "0"
|
||||
- name: MTU # Passando a variável para o container principal também
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backend-secrets
|
||||
key: MTU
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: backend-secrets
|
||||
|
|
@ -34,4 +53,4 @@ spec:
|
|||
cpu: "300m"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "800m"
|
||||
cpu: "800m"
|
||||
|
|
|
|||
Loading…
Reference in a new issue