我们使用 okteto 允许在本地运行的 Kubernetes 集群上进行开发。我们首先使用 helm upgrade --install ... 命令部署我们的微服务及其所有资源。服务运行后,我们调用 okteto,期望微服务 pod 将被 okteto-manged 微服务 pod 替换,如文档中所述。然而,这并没有发生,因为错误“资源 [pod 名称] 已经存在”。这些是 okteto 日志:
"'.stignore' exists in folder '/home/vanja/dev/workspaces/ris-administration'" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"Terminal: &{{1280 5 191 35387 0 [3 28 127 21 4 0 1 0 17 19 26 0 18 15 23 22 0 0 0] 0 0}}" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"activating development container retry=false" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"starting shutdown sequence" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"sent cancellation signal" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"stopping forwarders" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"completed shutdown sequence" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"activate failed with: resource administration already exist" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"exit signal received due to error: resource administration already exist" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
"error deleting deprecated volume: persistentvolumeclaims \"okteto-administration\" not found" action=fc689dfc-1f1d-4942-901b-f7f2a037eea8 version=1.15.3
任何想法将不胜感激。
最好的问候, 瓦尼亚