From 4cbb1dae04f3e36140ce1704361446d669d5e2f7 Mon Sep 17 00:00:00 2001 From: abacus Date: Tue, 30 Jun 2026 16:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20redis/redis.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis/redis.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/redis/redis.yaml b/redis/redis.yaml index 3b3352a..800e407 100644 --- a/redis/redis.yaml +++ b/redis/redis.yaml @@ -29,4 +29,22 @@ spec: memory: 300Mi limits: cpu: 200m - memory: 300Mi \ No newline at end of file + memory: 300Mi +--- +apiVersion: v1 +kind: Service +metadata: + namespace: mall + name: redis-svc + annotations: + lb.kubesphere.io/v1alpha1: openelb + eip.openelb.kubesphere.io/v1alpha1: "192.168.2.136" +spec: + selector: + mall: redis + ports: + - name: redis-6379 + port: 6379 + targetPort: 6379 + type: LoadBalancer + loadBalancerIP: 192.168.2.136 \ No newline at end of file