redis-deployment.yaml 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: redis
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app.kubernetes.io/name: redis
  10. app.kubernetes.io/part-of: peertube
  11. strategy:
  12. type: Recreate
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: redis
  17. app.kubernetes.io/part-of: peertube
  18. spec:
  19. containers:
  20. - image: redis:6-alpine
  21. name: redis
  22. resources:
  23. limits:
  24. cpu: 2000m
  25. memory: 512Mi
  26. requests:
  27. cpu: 10m
  28. memory: 15Mi
  29. volumeMounts:
  30. - mountPath: /data
  31. name: redis-claim0
  32. ports:
  33. - name: default
  34. containerPort: 6379
  35. protocol: TCP
  36. volumes:
  37. - name: redis-claim0
  38. hostPath:
  39. path: /var/lib/peertube/redis
  40. type: Directory