我想分离出一个分离舱。所以我执行命令"kubeclt label pod app =--overwrite"
✘ yanchampion@yanchampiondeMacBook-Pro ~ kubectl -n test1 label pod myapp-deploy-848987f4fb-wc5v2 app=newname-debug --overwrite
Error from server (InternalError): Internal error occurred: replace operation does not apply: doc is missing key: /spec/containers/0/env/ : missing value
下面是部署pod信息
yanchampion@yanchampiondeMacBook-Pro ~ kubectl -n test1 get pod |grep myapp-deploy
myapp-deploy-848987f4fb-wc5v2 1/1 Running 0 5d8h
那有什么问题?
我只想把分离舱从部署中分离出来!有人能告诉我怎么修吗?
1条答案
按热度按时间ohtdti5x1#
您也可以尝试编辑或删除其pod规范中的标签:
kubectl edit pod myapp-deploy-848987f4fb-wc5v2