pv.yaml 441 B

12345678910111213141516171819202122
  1. apiVersion: v1
  2. kind: PersistentVolume
  3. metadata:
  4. name: power-monitoring-data
  5. spec:
  6. capacity:
  7. storage: 100Gi
  8. accessModes:
  9. - ReadWriteOnce
  10. persistentVolumeReclaimPolicy: Retain
  11. storageClassName: local-storage
  12. local:
  13. path: /srv/power-monitoring
  14. nodeAffinity:
  15. required:
  16. nodeSelectorTerms:
  17. - matchExpressions:
  18. - key: kubernetes.io/hostname
  19. operator: In
  20. values:
  21. - k8s