我在我的4 raspberry pi 4上安装了一个带有2gb内存和32 2gb卡的K8S集群。
在我的主节点和从节点上,我安装了qemu binfmt-支持qemu-用户静态,以便支持ARM CPU的码头映像。
为了监视集群,我尝试安装Grafana和Prometheus,方法是:
kubectl apply --filename https://raw.githubusercontent.com/giantswarm/prometheus/master/manifests-all.yaml但是pods prometheus-node-exporter在状态CrashLoopBackOff中失败了
当我检查日志kubectl logs prometheus-node-exporter-dn8t9 -n monitoring时,我得到了错误qemu: uncaught target signal 11 (Segmentation fault) - core dumped
我不知道如何解决这个问题,也不知道从哪里开始寻找。
有人能帮上忙吗?
发布于 2020-07-20 22:28:59
我看了一下,因为您运行的是raspberry pi 4,您的体系结构可能是aarch64 (arm64)。因此,似乎节点出口商DaemonSet K8s清单正在提取以下映像:prom/node-exporter:v0.14.0和我查看了dockerhub and that image tag doesn't have the aarch64 architecture tag,因此很可能会在您的示例中拉出amd64版本,从而导致节点上的qemu崩溃。
您还可以看到有一个arm64 image starting with prom/node-exporter:v0.18.0。因此,您可以尝试下载文件,编辑节点导出容器以使用v0.18.0,这将解决该容器的问题。您还可能需要更新具有匹配arm64体系结构的其他容器。
♀️♂️
$ wget https://raw.githubusercontent.com/giantswarm/prometheus/master/manifests-all.yaml然后改变:
...
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: prometheus-node-exporter
namespace: monitoring
labels:
app: prometheus
component: node-exporter
spec:
selector:
matchLabels:
app: prometheus
template:
metadata:
name: prometheus-node-exporter
labels:
app: prometheus
component: node-exporter
spec:
containers:
- image: prom/node-exporter:v0.18.0 Change here
name: prometheus-node-exporter
ports:
- name: prom-node-exp
#^ must be an IANA_SVC_NAME (at most 15 characters, ..)
containerPort: 9100
hostPort: 9100
hostNetwork: true
hostPID: true
...✌️
https://stackoverflow.com/questions/63003706
复制相似问题