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:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harbor-registry
|
- 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:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
image: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend:latest
|
image: in.gohorsejobs.com/gohorsejobsdev/gohorsejobs-backend:latest
|
||||||
|
|
@ -25,6 +39,13 @@ spec:
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: backend-secrets
|
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:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue