【发布时间】:2021-10-24 19:52:58
【问题描述】:
我已经使用 helm chart 在我的 Kubernetes 集群中安装了 Sonatype nexus repository manager。
我正在使用Kyma 安装。
Nexus 存储库管理器已正确安装,我可以访问该应用程序。
但登录密码文件似乎在附加在 pod 中的 pv 卷声明 /nexus-data 中。
现在每当我尝试使用 kubectl exec 命令访问 pod 时:
kubectl exec -i -t $POD_NAME -n dev -- /bin/sh
我收到以下错误:
OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown
我了解此问题是因为该图像不提供外壳功能。 有没有其他方法可以访问 pvc 中的密码文件?
【问题讨论】:
-
如果您使用 Kubernetes 1.22,您已经可以使用调试容器功能。 kubernetes.io/docs/tasks/debug-application-cluster/…
标签: kubernetes kubectl nexus3