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

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.