kubernetes:部署失败来自守护程序的错误响应:OCI运行时创建失败:
我已经在raspberry pi上建立了一个两节点集群,并且正在尝试建立一个ghost博客平台。我创建了一个部署,我看到容器正在崩溃,状态为“CrashLoopback”。非常感谢您对疑难解答的任何帮助。谢谢kubernetes:部署失败来自守护程序的错误响应:OCI运行时创建失败:,kubernetes,Kubernetes,我已经在raspberry pi上建立了一个两节点集群,并且正在尝试建立一个ghost博客平台。我创建了一个部署,我看到容器正在崩溃,状态为“CrashLoopback”。非常感谢您对疑难解答的任何帮助。谢谢 Warning Failed 7m13s kubelet, kube-node-2 Error: failed to start container "ghost": Error response from daemon: OCI runtime
Warning Failed 7m13s kubelet, kube-node-2 Error: failed to start container "ghost": Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/var/lib/docker/volumes/994c880776e4f19087b08dbd0b36362f71ed32a412691f0aac28c6f024ea20ed/_data\\\" to rootfs \\\"/var/lib/docker/overlay2/c83d0b7a7a4e0f576c63c39907aad3d54b4657d6520ca47fbd201e1e3b3a9fe3/merged\\\" at \\\"/var/lib/docker/overlay2/c83d0b7a7a4e0f576c63c39907aad3d54b4657d6520ca47fbd201e1e3b3a9fe3/merged/var/lib/ghost/content\\\" caused \\\"mkdir /var/lib/docker/overlay2/c83d0b7a7a4e0f576c63c39907aad3d54b4657d6520ca47fbd201e1e3b3a9fe3/merged/var/lib/ghost/content: permission denied\\\"\"": unknown
Normal Pulling 6m31s (x5 over 10m) kubelet, kube-node-2 pulling image "arm32v7/ghost"
Normal Created 6m5s (x5 over 9m49s) kubelet, kube-node-2 Created container
Normal Pulled 6m5s (x5 over 9m50s) kubelet, kube-node-2 Successfully pulled image "arm32v7/ghost"
Warning BackOff 18s (x29 over 8m5s) kubelet, kube-node-2 Back-off restarting failed container
我看到它与权限有关,但不确定这些权限是什么。以下是PV和PVC的输出
kubectl describe pv pv-ghost
Name: pv-ghost
Labels: pv=pv-ghost
Annotations: pv.kubernetes.io/bound-by-controller: yes
Finalizers: [kubernetes.io/pv-protection]
StorageClass:
Status: Bound
Claim: default/pvc-ghost
Reclaim Policy: Retain
Access Modes: RWX
Capacity: 3Gi
Node Affinity: <none>
Message:
Source:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: 192.168.178.50
Path: /mnt/ud-hdd/ghost/data
ReadOnly: false
Events: <none>
kubectl describe pvc pvc-ghost
Name: pvc-ghost
Namespace: default
StorageClass:
Status: Bound
Volume: pv-ghost
Labels: <none>
Annotations: pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 3Gi
Access Modes: RWX
Events: <none>
Mounted By: ghost-deployment-6cd67cbb7f-5vh5j
ghost-deployment-6cd67cbb7f-67xtr
ghost-deployment-6cd67cbb7f-fvq8w
ghost-deployment-6cd67cbb7f-sgksk
ghost-deployment-6cd67cbb7f-wgtzf
ghost-deployment-6cd67cbb7f-xrrdc
权限拒绝错误与以下操作有关:
mkdir/var/lib/docker/overlay2/c83d0b7a7a4e0f576c3393907aad3d54b4657d6520ca47fbd201e1e3b3a9fe3/merged/var/lib/ghost/content:权限拒绝
从您提供的信息来看还不清楚,但是如果我不得不猜测您正在尝试在NFS共享上创建一个目录的话。如果是这样,您很可能没有NFS服务器对该路径的写入权限。拒绝权限错误与以下操作有关:
mkdir/var/lib/docker/overly2/c83d0b7a7a4e0f576c39907aad3d54b4657d6527d652ca47fbd201e1e3b3a9fe3/merged/var/lib/ghost/content:拒绝权限
从您提供的信息来看还不清楚,但是如果我不得不猜测您正在尝试在NFS共享上创建一个目录的话。如果是这样,您很可能没有NFS服务器对该路径的写入权限。。是的。情况似乎是这样。我将etc/exports更改为/mnt/ud hdd 192.168.178.0/24(rw、sync、no_root\u squash)以提供根访问。现在我得到一个不同的错误。我更新了问题部分的错误经过进一步调查,我发现应用程序正在写入文件夹,但错误是由应用程序引起的…是的。情况似乎是这样。我将etc/exports更改为/mnt/ud hdd 192.168.178.0/24(rw、sync、no_root\u squash)以提供根访问。现在我得到一个不同的错误。我更新了问题部分的错误经过进一步调查,我发现应用程序正在写入文件夹,但错误是由应用程序引起的。
kubectl logs ghost-deployment-5759f4855c-294cl
tar: /var/lib/ghost/content.orig: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors