kubernetes - 使用 Heketi 在 Kubernetes 集群上安装 GlusterFS 时出现问题
问题描述
我尝试使用 heketi 在我的 kubernetes 集群上安装 GlusterFS。我启动 gk-deploy 但它显示未找到 pod:
Using Kubernetes CLI.
Using namespace "default".
Checking for pre-existing resources...
GlusterFS pods ... not found.
deploy-heketi pod ... not found.
heketi pod ... not found.
gluster-s3 pod ... not found.
Creating initial resources ... Error from server (AlreadyExists): error when creating "/heketi/gluster-kubernetes/deploy/kube-templates/heketi-service-account.yaml": serviceaccounts "heketi-service-account" already exists
Error from server (AlreadyExists): clusterrolebindings.rbac.authorization.k8s.io "heketi-sa-view" already exists
clusterrolebinding.rbac.authorization.k8s.io/heketi-sa-view not labeled
OK
node/sapdh2wrk1 not labeled
node/sapdh2wrk2 not labeled
node/sapdh2wrk3 not labeled
daemonset.extensions/glusterfs created
Waiting for GlusterFS pods to start ... pods not found.
我已经不止一次开始 gk-deploy 了。
我的 kubernetes 集群中有 3 个节点,似乎 pod 无法在其中任何一个上启动,但我不明白为什么。Pod 已创建但尚未准备好:
kubectl get pods
NAME READY STATUS RESTARTS AGE
glusterfs-65mc7 0/1 Running 0 16m
glusterfs-gnxms 0/1 Running 0 16m
glusterfs-htkmh 0/1 Running 0 16m
heketi-754dfc7cdf-zwpwn 0/1 ContainerCreating 0 74m
这是一个 GlusterFS Pod 的日志,它以警告结尾:
Events:
Type Reason Age From Message
Normal Scheduled 19m default-scheduler Successfully assigned default/glusterfs-65mc7 to sapdh2wrk1
Normal Pulled 19m kubelet, sapdh2wrk1 Container image "gluster/gluster-centos:latest" already present on machine
Normal Created 19m kubelet, sapdh2wrk1 Created container
Normal Started 19m kubelet, sapdh2wrk1 Started container
Warning Unhealthy 13m (x12 over 18m) kubelet, sapdh2wrk1 Liveness probe failed: /usr/local/bin/status-probe.sh
failed check: systemctl -q is-active glusterd.service
Warning Unhealthy 3m58s (x35 over 18m) kubelet, sapdh2wrk1 Readiness probe failed: /usr/local/bin/status-probe.sh
failed check: systemctl -q is-active glusterd.service
Glusterfs-5.8-100.1 在每个节点上安装并启动,包括主节点。Pod 无法启动的原因是什么?
解决方案
推荐阅读
- python - 如果 pyenv 设置为针对多个版本的 python 运行,如何运行 python 代码
- c - 找出子网掩码
- bash - 如何在 shell/bash 脚本中读取 json 对象?
- arrays - 如何通过列表
到列表 来自 JSON? - python - Left += 字符串操作
- r - 如何按字母顺序列出 R 数据框变量?
- java - MS Access 的 Jdbc Odbc 连接问题
- python - 缺少对 Python Azure 函数的依赖
- django - Django Runserver 在没有消息的情况下崩溃
- c# - 将 C++/Python 桌面应用程序转换为 Web 应用程序