Cannot create block storage volume

I’m following:

But both the pod I create and the pvc remain in pending state.

When I run kubectl describe pod elasticsearch-basic-0 (I’m following tutorial as well to add elastic search) I get:

  Type     Reason             Age                   From                Message
  ----     ------             ----                  ----                -------
  Normal   NotTriggerScaleUp  3m56s (x11 over 14m)  cluster-autoscaler  pod didn't trigger scale-up:
  Warning  FailedScheduling   1s (x15 over 14m)     default-scheduler   0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.

According to the first tutorial DO should automatically create a block storage volume but this does not seem to be happening. Am I missing something? Thanks.

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

So the only way I was able to get this to work was to manually create a PersistentVolume:

apiVersion: v1
kind: PersistentVolume
  name: elasticsearch-volume
    type: local
  storageClassName: manual
    storage: 100M
    - ReadWriteOnce
    path: "/data/elasticsearch"

Any ideas why DO isn’t doing this automatically as suggested in the docs, perhaps my DO config is note correct because it ideally I would like to store my persistent data directly to DOs block storage.

In fact what is the difference between creating a manual storage vs using do-block-storage. Thanks.