udpate prod mongo

main
ycz008 2024-04-19 16:39:35 +08:00
parent a449f6cc4a
commit ecd289172a
1 changed files with 5 additions and 0 deletions

View File

@ -24,8 +24,13 @@ spec:
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.ipv4.tcp_keepalive_intvl=10
sysctl -w net.ipv4.tcp_keepalive_probes=3
chmod 400 /etc/mongodb/keyfile.key
securityContext:
privileged: true
volumeMounts:
- name: mongo-keyfile
mountPath: /etc/mongodb/keyfile.key
subPath: keyfile.key
containers:
- name: mongo
image: mongo:6.0