Kubernetes吊舱仍处于“ContainerCreating”状态

问题描述:

我对Kubernetes环境有疑问。我有K8s云,并且在我添加后为其分配一个持久体积到一个吊舱,此吊舱仍处于“ContainerCreating”状态。该PV已正确分配PVC。 PVC是与副本两个外部GlusterFS服务器2.Kubernetes吊舱仍处于“ContainerCreating”状态

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 

荚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日志XXX返回此:

Error from server (BadRequest): container "xxx" in pod "xxx" is waiting to start: ContainerCreating. 

你有任何想法可能是错误的或者在哪里可以找到任何详细的日志? THX提前。

编辑: Gluster安装是否正确安装在主,如果我手动添加有什么文件,这是正确复制两个Gluster服务器

+0

格式,以便更清楚 –

+0

似乎没有成为一个'image'从你的配置上面 –

+0

嗨, THX答复创建的货柜你上面的第一粘贴的配置,但这不是重点。这个RC被缩短了。在其他测试环境中,它工作正常。如果没有可用的图像,那么在kubectl describe pod xxx和pod的状态将会是“ImagePullBackoff”。你还有其他建议吗? – Bendik

感谢大家对。 EP上的配置错误。无论如何,在所有可能的日志或“或kubectl描述pod xxx”中没有任何信息。

干杯

+0

Gluster EP的IP地址错误。 – Bendik