[英]Kubernetes pod still in "ContainerCreating" status
I have a question about Kubernetes enviroment.我有一个关于 Kubernetes 环境的问题。 I have K8s cloud and after what I add assign one Persistent volume to one pod, this pod is still in "ContainerCreating" status.
我有 K8s 云,在我添加了一个持久卷给一个 pod 之后,这个 pod 仍然处于“ContainerCreating”状态。 This PV has assign PVC correctly.
此 PV 已正确分配 PVC。 PVC is on two external GlusterFS servers with replica 2.
PVC 位于具有副本 2 的两个外部 GlusterFS 服务器上。
PV look like this: 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 look like this: 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 look like this: 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 return no errors. Kubectl describe pod xxx 没有返回错误。
kubectl logs xxx return this: kubectl logs xxx 返回:
Error from server (BadRequest): container "xxx" in pod "xxx" is waiting to start: ContainerCreating.
Do you have any ideas what could be wrong or where I can find any detailed logs?你有什么想法可能是错误的,或者我可以在哪里找到任何详细的日志? THX in advance.
THX提前。
Edit: Gluster mount is mounted on Master correctly and if I manually add there any file, it is correctly duplicated on both Gluster servers编辑:Gluster mount 正确安装在 Master 上,如果我手动添加任何文件,它会在两个 Gluster 服务器上正确复制
thank all of you. 谢谢大家 There was wrong configuration on EP.
EP上的配置有误。 Anyway, there was not any information in all possible logs or "or kubectl describe pod xxx".
无论如何,所有可能的日志或“或kubectl描述pod xxx”中都没有任何信息。
Cheers 干杯
要查看有什么问题,请检查事件:
kubectl get events --sort-by=.metadata.creationTimestamp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.