Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Managed Service for Kubernetes
  • Comparison with other Yandex Cloud services
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
    • General questions
    • Data storage
    • Configuring and updating
    • Automatic scaling
    • Resources
    • Monitoring and logs
    • Troubleshooting
    • All questions on a single page
  1. FAQ
  2. Data storage

Data storage

Written by
Yandex Cloud
Updated at May 28, 2024

What are the features of disk storage when a database (for example, MySQL® or PostgreSQL) is located in a Kubernetes cluster?What are the features of disk storage when a database (for example, MySQL® or PostgreSQL) is located in a Kubernetes cluster?

For a database located in a Kubernetes cluster, use StatefulSet controllers. We don't recommend starting stateful services with persistent volumes in Kubernetes. For stateful databases, use Yandex Cloud managed databases, for example, Managed Service for MySQL® or Managed Service for PostgreSQL.

How do I connect to managed Yandex Cloud databases?How do I connect to managed Yandex Cloud databases?

To connect to a Yandex Cloud managed database located in the same network, specify its hostname and FQDN.

To connect a database certificate to a pod, use secret or configmap objects.

What's the right way to add a persistent volume to a container?What's the right way to add a persistent volume to a container?

You can select connection mode for Compute Cloud disks depending on your needs:

  • If you want Kubernetes to automatically provision a PersistentVolume object and configure a new disk, create a pod with a dynamically provisioned volume.
  • To use existing Compute Cloud volumes, create a pod with a statically provisioned pod.

For more information, see Working with persistent volumes.

What types of volumes does Managed Service for Kubernetes support?What types of volumes does Managed Service for Kubernetes support?

Managed Service for Kubernetes supports temporary volumes and persistent volumes. For more information, see Volume.

Was the article helpful?

Previous
General questions
Next
Configuring and updating
Yandex project
© 2025 Yandex.Cloud LLC