apiVersion: apps/v1 kind: Deployment metadata: namespace: mall name: redis spec: replicas: 1 selector: matchLabels: mall: redis template: metadata: namespace: mall name: redis labels: mall: redis spec: imagePullSecrets: - name: abahub-registry-secret containers: - name: redis image: abahub.abacus.com.cn/base/redis:7.0.8 imagePullPolicy: IfNotPresent ports: - containerPort: 6379 resources: requests: cpu: 200m memory: 300Mi limits: cpu: 200m 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