apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-local-mysql-debug
spec:
  capacity:
    storage: 5Gi
  volumeMode: Filesystem
  accessModes:
  - ReadWriteMany
  persistentVolumeReclaimPolicy: Delete
  storageClassName: mysql-pv-class # index by pvc
  local:
    path: /var/lib/mysqlx/vol-debug
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values:
          - alx # 要配置成存在的节点名，kubectl get node 查到的
