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