简体   繁体   English

Kubernetes pod 仍处于“ContainerCreating”状态

[英]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.

相关问题 Kubernetes - Pod 仍处于 ContainerCreating 状态 - Kubernetes - Pod Remains in ContainerCreating Status Nginx Kubernetes POD 停留在 ContainerCreating - Nginx Kubernetes POD stays in ContainerCreating 无法删除处于 ContainerCreating 状态的 pod - Cannot delete pod in status ContainerCreating Kubernetes Azure磁盘动态持久卷声明:挂载失败,超时已过期。 Pod永远处于“ContainerCreating”状态 - Kubernetes Azure disk dynamic Persistent Volume Claim: Mount failed with timeout expired. Pod is in “ContainerCreating” status for ever Kubernetes 作业与容器中的 podCreating state - Kubernetes job vs pod in containerCreating state kubectl始终获得pod状态ContainerCreating - kubectl get pod status always ContainerCreating Google Cloud中的Kubernetes问题停留在ContainerCreating状态 - Problem with Kubernetes in Google Cloud stuck with ContainerCreating status 如何防止或修复 Kubernetes pod 卡在 containerCreating 中 - How to prevent or fix Kubernetes pod getting stuck in containerCreating occasionally 在新创建的 kubernetes 集群中启动 POD 时出错 (ContainerCreating) - Error while starting POD in a newly created kubernetes cluster (ContainerCreating) 映像升级后,Kubernetes Pod处于ContainerCreating状态 - Kubernetes pod is stuck in ContainerCreating state after image upgrade
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM