Kubernetes pv 处在 Terminating 状态

2024-07-30 243 0

[root@harbor yaml]# kubectl get pvc
NAME      STATUS   VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
nfs-pvc   Bound    nfs-pv   5Gi        RWX            nfs-slow       12d
[root@harbor yaml]# kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS        CLAIM                          STORAGECLASS   REASON   AGE
nfs-pv                                     5Gi        RWX            Recycle          Bound         default/nfs-pvc                nfs-slow                12d
pvc-0e1dc955-ce5a-48c1-a071-b6e798c010d7   5Gi        RWX            Delete           Terminating   java-project/mysql-data-db-0   nfs-client              12h
[root@harbor yaml]# kubectl patch pv pvc-0e1dc955-ce5a-48c1-a071-b6e798c010d7   -p '{"metadata":{"finalizers":null}}'
persistentvolume/pvc-0e1dc955-ce5a-48c1-a071-b6e798c010d7 patched
[root@harbor yaml]# kubectl get pv
NAME     CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM             STORAGECLASS   REASON   AGE
nfs-pv   5Gi        RWX            Recycle          Bound    default/nfs-pvc   nfs-slow                12d

相关文章

KubeSphere DevOps 流水线JAVA项目配置
虚拟机热添加内存 Kubernetes未生效
Containerd镜像加速及私有仓库配置(用户密码和忽略HTTPS)
在Kubernetes集群部署kubesphere
使用KubeKey快速部署Kubernetes集群1.28.8
Rancher 快速创建RKE K8S集群

发布评论