Kubernetes PersistentVolumeClaim not connected

I have Kubernetes and it works on AWS, working correctly.

I am trying to deploy this sample application . I can run the project locally with docker-compose upno problems

I used https://github.com/kubernetes-incubator/kompose to deploy it to Kubernetes. This worked, but when I checked the pods, I have the following error:

[SchedulerPredicates failed because PersistentVolumeClaim is not bound: "web-Claim0", which is unexpected. SchedulerPredicates failed due to PersistentVolumeClaim not being bound: "web claim0", which is unexpected. SchedulerPredicates failed due to PersistentVolumeClaim not bound: "web-claim0", which is unexpected.]

I would like to share volume between two containers without customization aws-ebs. Is it possible? I would like to start with the simplest total.

volume configuration here


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
+4
source share
1 answer

I think I was very confused about how this works, so it was hard for someone to answer. I'll just give you a couple of tips.

  • Do not learn Kompose and just learn Kubernetes
  • The main cause of the problem, I did not create volumes on EBS in the first place
+1
source

Source: https://habr.com/ru/post/1667243/


All Articles