From the course: Learning Kubernetes

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Running stateful workloads

Running stateful workloads - Kubernetes Tutorial

From the course: Learning Kubernetes

Running stateful workloads

- [Instructor] Earlier in the course, we deployed a sample application which was stateless and didn't communicate with the database. You might be wondering how do you handle data storage in Kubernetes? In this video, I'll discuss two ways. The first option is to connect your application with a database that is running outside of your cluster. For example, let's assume you have an application that uses Postgres for data persistence. You can either build and maintain a SQL database on a server that is separate from your cluster, or you can use a managed database service like Azure SQL. Amazon RDS, or Google Cloud SQL and configure it to communicate with Kubernetes. The second option is to use a Kubernetes Persistent Volume. Persistent volumes are a type of data storage that exists in your cluster and remain even after a pod is destroyed. You can use a Kubernetes object called a stateful set to make sure your updated application…

Contents