相关文章推荐
坏坏的丝瓜  ·  独家 | ...·  1 月前    · 
坏坏的丝瓜  ·  Orca 配置 GUI - ...·  6 月前    · 
坏坏的丝瓜  ·  反射获取Field - ALID Blog·  6 月前    · 
坏坏的丝瓜  ·  PostgreSQL 时间函数 ...·  9 月前    · 
坏坏的丝瓜  ·  groovy findall in list·  9 月前    · 
坏坏的丝瓜  ·  Simultaneous ...·  11 月前    · 
坏坏的丝瓜  ·  King's Uncle·  11 月前    · 
坏坏的丝瓜  ·  闲谈Monaco ...·  12 月前    · 
讲道义的鸡蛋  ·  PyTorch【9】-torchvision ...·  44 分钟前    · 
悲伤的熊猫  ·  Windows Server ...·  1小时前    · 
豪情万千的吐司  ·  What is Server Core? ...·  1小时前    · 
傻傻的大熊猫  ·  ERROR 2002 (HY000): ...·  5 小时前    · 
正直的豆芽  ·  [MY-010273] [Server] ...·  5 小时前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

On my kubernetes cluster, I mapped persistenet volumn but some how my cluster get restarted, and rabbitmq is failing to start, So I try to delete the PVC using

kubectl delete pvc pvc-475317d7-5c92-4aec-9187-5760424a2c02 comamnd,

but it stucked in Lost status, now My deployment Pod is failing with error

could not find v1.PersistentVolume "pvc-475317d7-5c92-4aec-9187-5760424a2c02" (repeated 4 times)

when I execute kubectl get pvc it gives

NAME                                          STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS       AGE
data-rabbitmq-0                               Lost     pvc-475317d7-5c92-4aec-9187-5760424a2c02   0                         do-block-storage   177d
data-rabbitmq-1                               Lost     pvc-17d19163-6112-49e8-b38a-18e62d677ee8   0                         do-block-storage   177d

Can someone please help me how to solve this ?

Thanks Alpesh

The command you should be doing is kubectl delete pvc data-rabbitmq-0

pvc-475317d7-5c92-4aec-9187-5760424a2c02 is the name of the volume (pv)

You will get a better understanding once you see the output of kubectl get pv

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

 
推荐文章
坏坏的丝瓜  ·  King's Uncle
11 月前