Update backend-deployment-dev.yaml
Ajustado o MTU
This commit is contained in:
parent
84bc63cb03
commit
7ac4c8628f
1 changed files with 21 additions and 0 deletions
|
|
@ -16,6 +16,20 @@ spec:
|
|||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-registry
|
||||
# --- INÍCIO DA CORREÇÃO DE REDE ---
|
||||
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 DA CORREÇÃO DE REDE ---
|
||||
containers:
|
||||
- name: backend
|
||||
image: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend:latest
|
||||
|
|
@ -25,6 +39,13 @@ spec:
|
|||
envFrom:
|
||||
- secretRef:
|
||||
name: backend-secrets
|
||||
# Adicionando a variável explicitamente também no container principal se precisar
|
||||
env:
|
||||
- name: MTU
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backend-secrets
|
||||
key: MTU
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
|
|
|
|||
Loading…
Reference in a new issue