我正在尝试将一个wiki.js部署到由四个RPi4组成的K3S集群中。
为此,我根据安装说明(https://docs.requarks.io/install/kubernetes)运行此命令:
$ helm repo add requarks https://charts.js.wiki
$ helm repo update
$ helm install wikijs requarks/wiki在这些命令之后,我得到以下信息:
NAME: wikijs
LAST DEPLOYED: Tue Jun 14 13:25:30 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
http://wiki.minikube.localmap[path:/ pathType:Prefix]然而,当我得到吊舱时,我得到以下信息:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
wikijs-7f6c8b9f54-lz55k 0/1 ContainerCreating 0 3s
wikijs-postgresql-0 0/1 Error 0 3s最后,查看postgres日志,我得到:
$ kubectl logs wikijs-postgresql-0
standard_init_linux.go:228: exec user process caused: exec format error我认为这是一个错误的可执行文件运行在错误的架构中,但是,wikijs和postgresql都支持ARM64,所以,通过部署应用程序,应该选择正确的体系结构,不是吗?
如果我需要手动选择架构,我如何才能这样做?我查看了wikijs的图表,找不到选择postgres图像的地方。
非常感谢!
发布于 2022-08-16 19:42:56
我也遇到了同样的问题。问题是在rpi上运行postgres映像。我能够使用postgresql状态集:arm64v8/postgres:14 from docker.io的图像在我的arm64v8/postgres:14上工作。
我不得不在掌舵图中的两个地方更改这个图像:
# charts/postgresql/values.yaml
image:
registry: docker.io
repository: arm64v8/postgres
tag: 14
volumePermissions:
enabled: true
image:
registry: docker.io
repository: arm64v8/postgres
tag: 14后者用于initContainer (参见postgresql图表中的状态集模板)。
https://stackoverflow.com/questions/72617064
复制相似问题