redis-sentinel-dc.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apiVersion: v1
  2. items:
  3. - apiVersion: v1
  4. kind: DeploymentConfig
  5. metadata:
  6. labels:
  7. app: redis-sentinel
  8. redis-sentinel: "true"
  9. name: redis-sentinel
  10. spec:
  11. replicas: 3
  12. selector:
  13. app: redis-sentinel
  14. redis-sentinel: "true"
  15. template:
  16. metadata:
  17. labels:
  18. app: redis-sentinel
  19. redis-sentinel: "true"
  20. spec:
  21. containers:
  22. - image: 172.30.151.14:5000/redis/redis@sha256:e508f686a4f50eb54350c091f3df8fc6a9649dd8c613482088534c5ca70cfc37
  23. imagePullPolicy: Always
  24. name: sentinel
  25. env:
  26. - name: SENTINEL
  27. value: "true"
  28. volumeMounts:
  29. - mountPath: /redis-master-data
  30. name: data
  31. ports:
  32. - containerPort: 26379
  33. resources: {}
  34. dnsPolicy: ClusterFirst
  35. restartPolicy: Always
  36. securityContext: {}
  37. terminationGracePeriodSeconds: 30
  38. volumes:
  39. - name: data
  40. emptyDir: {}
  41. test: false
  42. triggers:
  43. - type: ConfigChange
  44. - imageChangeParams:
  45. automatic: true
  46. containerNames:
  47. - sentinel
  48. from:
  49. kind: ImageStreamTag
  50. name: redis:latest
  51. namespace: redis
  52. type: ImageChange
  53. status: {}
  54. kind: List
  55. metadata: {}