From 894389b9d1939bd305cd705b84a3e80094cbf2e8 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Tue, 6 Jun 2023 14:11:51 +0800 Subject: [PATCH] add redis initContainer --- trainer-upgrade/redis/redis.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/trainer-upgrade/redis/redis.yaml b/trainer-upgrade/redis/redis.yaml index 7948531..0a626df 100644 --- a/trainer-upgrade/redis/redis.yaml +++ b/trainer-upgrade/redis/redis.yaml @@ -32,6 +32,13 @@ spec: labels: app: redis spec: + initContainers: + - name: init + image: busybox + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c", "sysctl -w net.core.somaxconn=1024"] + securityContext: + privileged: true containers: - name: redis image: redis:6.2.12 @@ -87,4 +94,3 @@ spec: selector: app: redis type: NodePort - \ No newline at end of file