[英]Kubernetes pod still in "ContainerCreating" status
我有一个关于 Kubernetes 环境的问题。 我有 K8s 云,在我添加了一个持久卷给一个 pod 之后,这个 pod 仍然处于“ContainerCreating”状态。 此 PV 已正确分配 PVC。 PVC 位于具有副本 2 的两个外部 GlusterFS 服务器上。
PV长这样:
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
definitionVersion: "20170919"
name: tarsier-pv
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 50Gi
glusterfs:
endpoints: glusterfs-cluster
path: tarsier-prep
persistentVolumeReclaimPolicy: Recycle
PVC 长这个样子:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tarsier-pvc
annotations:
definitionVersion: "20170919"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
volumeName: tarsier-pv
status:
accessModes:
- ReadWriteMany
capacity:
storage: 50Gi
phase: Bound
Pods RC 看起来像这样:
apiVersion: v1
kind: ReplicationController
metadata:
name: xxx
spec:
replicas: 1
template:
metadata:
labels:
app: xxxxx
spec:
volumes:
- name: tarsier-pv
persistentVolumeClaim:
claimName: tarsier-pvc
...
containers:
- name: xxx
...
volumeMounts:
- name: tarsier-pv
mountPath: "/shared_data/storage"
Kubectl describe pod xxx 没有返回错误。
kubectl logs xxx 返回:
Error from server (BadRequest): container "xxx" in pod "xxx" is waiting to start: ContainerCreating.
你有什么想法可能是错误的,或者我可以在哪里找到任何详细的日志? THX提前。
编辑:Gluster mount 正确安装在 Master 上,如果我手动添加任何文件,它会在两个 Gluster 服务器上正确复制
谢谢大家 EP上的配置有误。 无论如何,所有可能的日志或“或kubectl描述pod xxx”中都没有任何信息。
干杯
要查看有什么问题,请检查事件:
kubectl get events --sort-by=.metadata.creationTimestamp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.