---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-slave
  namespace: default
spec:
  replicas: 2
  selector:
    matchLabels:
      app: redis-slave
  template:
    metadata:
      labels:
        app: redis-slave
    spec:
      containers:
      - env:
        - name: "TZ"
          value: "Europe/Istanbul"
        - name: ALLOW_EMPTY_PASSWORD
          value: "yes"
        image: redis:latest
        name: redis-slave
        command: ["redis-server", "--slaveof", "redis","6379"]
      restartPolicy: Always

