Kubernetes PersistentVolumeClaim不受约束

我在AWS上运行Kubernetes并正常运行.

我正在尝试部署这个sample application.我可以使用docker-compose在本地运行项目,没有任何问题

我用https://github.com/kubernetes-incubator/kompose将它部署在Kubernetes上.它工作,但当我检查pods时,我有以下错误:

[SchedulerPredicates failed due to PersistentVolumeClaim is not bound: “web-claim0”, which is unexpected., SchedulerPredicates failed due to PersistentVolumeClaim is not bound: “web-claim0”, which is unexpected., SchedulerPredicates failed due to PersistentVolumeClaim is not bound: “web-claim0”, which is unexpected.]

我想在没有设置aws-ebs的情况下在两个容器之间共享一个卷.可能吗?我想从最简单的卷共享开始.

这是卷配置

Persistent Volume Claim     {5}

kind    :   PersistentVolumeClaim

apiVersion  :   v1

    metadata        {6}

name    :   web-claim1

namespace   :   default

selfLink    :   /api/v1/namespaces/default/persistentvolumeclaims/web-claim1

uid :   a94c38da-de18-11e6-84b6-027fd28089d4

resourceVersion :   296178

creationTimestamp   :   2017-01-19T07:26:58Z

    spec        {2}

    accessModes     [1]

0   :   ReadWriteOnce

    resources       {1}

    requests        {1}

storage :   100Mi

    status      {1}

phase   :   Pending

最佳答案 我觉得我很困惑它是如何运作的,所以任何人都很难回答.我只想给出一些提示.

>不要学习Kompose,只学习Kubernetes
>问题的根本原因是我没有首先在EBS上创建卷

点赞