redis-deployment.yaml 805 B

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. kompose.cmd: kompose convert
  6. kompose.version: 1.34.0 (cbf2835db)
  7. labels:
  8. io.kompose.service: redis
  9. name: redis
  10. namespace: sharelatex
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. io.kompose.service: redis
  16. strategy:
  17. type: Recreate
  18. template:
  19. metadata:
  20. annotations:
  21. kompose.cmd: kompose convert
  22. kompose.version: 1.34.0 (cbf2835db)
  23. labels:
  24. io.kompose.service: redis
  25. spec:
  26. containers:
  27. - image: redis:6.2
  28. name: redis
  29. volumeMounts:
  30. - mountPath: /data
  31. name: redis-claim0
  32. restartPolicy: Always
  33. volumes:
  34. - name: redis-claim0
  35. persistentVolumeClaim:
  36. claimName: redis-claim0