apiVersion: v1
kind: Pod
metadata:
  name: redis-node2
  labels:
    name: redis
    node: node2
spec:
  containers:
  -
    name: redis
    image: 172.22.111.199:80/cloud/k8s-redis:1.0
    ports:
    - containerPort: 6379
    volumeMounts:
    - mountPath: /data
      name: redis-data
    env:
      - name: MASTER_ADDRESS
        value: "redis-node1-service"
      - name: ANNOUNCE_IP
        value: "redis-node2-service"
  volumes:
    - name: redis-data
      emptyDir: {}
