media2-filesystem.yaml 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apiVersion: ceph.rook.io/v1
  2. kind: CephFilesystem
  3. metadata:
  4. name: media2
  5. namespace: rook-ceph
  6. spec:
  7. metadataPool:
  8. replicated:
  9. size: 3
  10. deviceClass: ssd
  11. dataPools:
  12. - name: default
  13. replicated:
  14. size: 3
  15. deviceClass: hdd
  16. - name: erasurecoded
  17. erasureCoded:
  18. dataChunks: 2
  19. codingChunks: 1
  20. deviceClass: hdd
  21. preserveFilesystemOnDelete: true
  22. metadataServer:
  23. activeCount: 1
  24. activeStandby: true
  25. placement:
  26. nodeAffinity:
  27. requiredDuringSchedulingIgnoredDuringExecution:
  28. nodeSelectorTerms:
  29. - matchExpressions:
  30. - key: storage-node
  31. operator: In
  32. values:
  33. - "true"
  34. tolerations:
  35. - key: storage-node
  36. operator: Exists
  37. priorityClassName: system-cluster-critical
  38. # 4GiB is recommended
  39. resources:
  40. limits:
  41. cpu: "300m"
  42. memory: 1Gi
  43. requests:
  44. cpu: "100m"
  45. memory: 500Mi