redis-deployment.yaml 781 B

1234567891011121314151617181920212223242526272829303132333435
  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. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. io.kompose.service: redis
  15. strategy:
  16. type: Recreate
  17. template:
  18. metadata:
  19. annotations:
  20. kompose.cmd: kompose convert
  21. kompose.version: 1.34.0 (cbf2835db)
  22. labels:
  23. io.kompose.service: redis
  24. spec:
  25. containers:
  26. - image: redis:6.2
  27. name: redis
  28. volumeMounts:
  29. - mountPath: /data
  30. name: redis-claim0
  31. restartPolicy: Always
  32. volumes:
  33. - name: redis-claim0
  34. persistentVolumeClaim:
  35. claimName: redis-claim0