pv.yaml 481 B

1234567891011121314151617181920212223
  1. apiVersion: v1
  2. kind: PersistentVolume
  3. metadata:
  4. name: static-file-server-pv
  5. namespace: home
  6. labels:
  7. type: local
  8. spec:
  9. storageClassName: local
  10. capacity:
  11. storage: 3Gi
  12. accessModes:
  13. - ReadWriteOnce
  14. hostPath:
  15. path: "/data/k8s/storage/static-file-server"
  16. nodeAffinity:
  17. required:
  18. nodeSelectorTerms:
  19. - matchExpressions:
  20. - key: kubernetes.io/hostname
  21. operator: In
  22. values:
  23. - uranus