redis-slave-deployment.yaml.in 834 B

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: redis-slave
  5. spec:
  6. replicas: 2
  7. selector:
  8. matchLabels:
  9. app: redis
  10. role: slave
  11. tier: backend
  12. template:
  13. metadata:
  14. labels:
  15. app: redis
  16. role: slave
  17. tier: backend
  18. spec:
  19. containers:
  20. - name: slave
  21. image: {{.GBRedisSlaveImage}}
  22. resources:
  23. requests:
  24. cpu: 100m
  25. memory: 100Mi
  26. env:
  27. - name: GET_HOSTS_FROM
  28. value: dns
  29. # If your cluster config does not include a dns service, then to
  30. # instead access an environment variable to find the master
  31. # service's host, comment out the 'value: dns' line above, and
  32. # uncomment the line below:
  33. # value: env
  34. ports:
  35. - containerPort: 6379