From ecd289172a3bedf3978a686b2741148e7e0717db Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 19 Apr 2024 16:39:35 +0800 Subject: [PATCH] udpate prod mongo --- prod-upgrade/mongo/mongo.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prod-upgrade/mongo/mongo.yaml b/prod-upgrade/mongo/mongo.yaml index c2d5698..2bb0161 100644 --- a/prod-upgrade/mongo/mongo.yaml +++ b/prod-upgrade/mongo/mongo.yaml @@ -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