Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
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.
Hey Rob, here’s a very good blog post on how you should set up your PostgreSQL DB with Kubernetes:
https://severalnines.com/database-blog/using-kubernetes-deploy-postgresql
You’ll definitely need to adjust the apiVersion within the YAML files. For example, if you’re using Kubernetes 1.16, then you’ll need to change the following for Deployment
change
apiVersion: extensions/v1beta1
to
apiVersion: apps/v1
Please do leverage the documentation which has good information as well as examples to get you going.
The way to solve this problem is to attach block storage not to the node, but to the persistent volume. There is an official guide how to do this: https://www.digitalocean.com/docs/kubernetes/how-to/add-volumes/
There is a problem though - the guide explains how to create brand new block storage, and says nothing about the situation described in your use case when we have an existing block storage. The guide for that case is here: https://github.com/digitalocean/csi-digitalocean/blob/master/examples/kubernetes/pod-single-existing-volume/README.md