小编kkp*_*eek的帖子

为什么 kubectl cp 命令以退出代码 126 终止?

我正在尝试使用以下命令将文件从 pod 复制到本地:

kubectl cp /namespace/pod_name:/path/in/pod /path/in/local
Run Code Online (Sandbox Code Playgroud)

但是command terminates with exit code 126不会发生和复制。

同样,在使用以下命令从本地尝试到 pod 时:

kubectl cp /path/in/local /namespace/pod_name:/path/in/pod
Run Code Online (Sandbox Code Playgroud)

它引发以下错误:

OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "tar": executable file not found in $PATH: unknown

请帮助解决这个问题。

file-copying kubernetes devops kubectl

2
推荐指数
4
解决办法
1898
查看次数

如何声明 NFS 持久卷?

作为 Kubernetes 的初学者,我需要:

创建部署要遵循的步骤指南,已声明 nfs pv。请提供每一步要应用的yaml文件。

抱歉不清楚,我在这里更新了确切的问题

为什么我们会收到错误“Mount failed with exit status 32”?如何解决这个问题?

nfs kubernetes persistent-volumes

-2
推荐指数
1
解决办法
49
查看次数