Database deployment options in GKE

Google Cloud Tech · Intermediate ·📊 Data Analytics & Business Intelligence ·2y ago

Key Takeaways

This video discusses database deployment options in Google Kubernetes Engine (GKE), focusing on fully-managed databases Cloud SQL and Cloud Spanner, and how to connect to them from GKE.

Full Transcript

[Music] welcome to this video where we will discuss database options for gke users we'll cover what your options are and focus on two managed databases Cloud SQL and Cloud spanner and see whether these might be right for your cluster requirements before we continue you should already be familiar with what stateless and stateful applications are as well as the differences between relational and non-relational databases now there are different types of workloads you can run in gke including stateless and stateful applications if you are using stateful applications in your cluster then you'll need a database as these apps need to store data let's review the options you have for running a database on the Google Cloud platform you could opt for a self-managed database a database on gke itself or a fully managed database in this video we'll focus on fully managed databases compared with the other two options this type of database requires the least effort from you to operate and manage you just need to create a database build your app and Google Cloud takes care of the rest installation upgrade storage as well as many of the maintenance tasks like backups and scaling this option makes it a lot easier to deploy and scale your database servers Cloud provides several database options to cover all database use cases from relational to non-relational database needs and even in memory each database has its own features and the type you'll need depends on your specific use case if you are looking for a database option for your gke clusters Cloud SQL and Cloud spanner are great choices using a fully managed database server outside your gke cluster can make your applications more highly available and allows for more complex scenarios like having your app spread across multiple clusters both Cloud SQL and spanner are fully managed services with a high level of availability scalability and performance so how do you know which database fits your needs better let's take a look at two fictitious organizations easy shop is a finish-based e-commerce company using gke to host the services they build they want to migrate their thousands of databases from their on-prem data centers to Google cloud with minimal downtime and want to easily connect to the database from gke their developers are familiar with postgres SQL so easy shop would prefer a managed database that is compatible with this system Game Wizards is a company that uses gke to build games for them data integrity and availability are critical needs for a database they don't want to spend too much time on Administration or scalability issues rather they prefer to focus on game development and user experience game results is launching a new game shortly and anticipates a huge increase in player base across the globe over the next few months so they are looking for a database that can handle massive amounts of data with extremely low latency Cloud SQL is a good choice for easy shop as it provides a fully managed environment for specific database engines including postgresql it's the more cost effective choice for an organization that requires a high level of availability and performance but doesn't need to scale Beyond a single region on the other hand Cloud spanner is a good fit for Game Wizards they need a globally distributed relational database that can handle large amounts of data for a successful Game launch with spanner there is no fixed size limit so it can grow as the business grows you can see from these examples how Cloud SQL and spanner can serve different business needs spanner is unique as it has the benefits of relational databases with the horizontal scalability you would normally expect from a non-relational database it's best suited for apps such as gaming retail banking Payment Solutions any large-scale Global applications where you require unlimited scalability and strong consistency Cloud SQL is more suited for smaller scale database requirements such as general purpose web Frameworks e-commerce apps and so on whichever platform you choose though both database options offer easy integration with gke first you'll set up a database instance and create the database then you'll set up a service account that will be used by gke to connect to the database of your choice once you deploy your applications in the gke cluster they will connect to the database instance using a fully managed database in Google Cloud simplifies the process of provisioning and maintaining the database and frees up your resources so you can focus on building your applications for more detailed steps on how to connect your gke applications to either Cloud SQL or Cloud spanner check out our documentation thanks for watching [Music]

Original Description

Connect to Cloud SQL from GKE → https://goo.gle/Connect_GKE_Cloud_SQL Deploy an app using GKE and Cloud Spanner → https://goo.gle/Connect_GKE_Cloud_Spanner This video describes your database options when deploying stateful applications on Google Kubernetes Engine (GKE). We focus on fully-managed databases, and explain why Cloud SQL and Cloud Spanner might fit your GKE cluster requirements.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud Tech · Google Cloud Tech · 49 of 60

1 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
48 Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

This video teaches how to deploy and connect to fully-managed databases Cloud SQL and Cloud Spanner in Google Kubernetes Engine (GKE), and how to choose the right database for your application needs.

Key Takeaways
  1. Create a database instance
  2. Set up a service account for GKE to connect to the database
  3. Deploy your application in the GKE cluster
  4. Connect to the database instance using a fully managed database
💡 Fully-managed databases like Cloud SQL and Cloud Spanner simplify the process of provisioning and maintaining databases, freeing up resources to focus on building applications.

Related Reads

📰
Capacity Is Not Generation: Anatomy of a Convenient Energy Myth
Distinguish between energy capacity and generation to make informed decisions in the energy sector, understanding the difference is crucial for accurate planning and analysis
Medium · Data Science
📰
matten: Heterogeneous data with `--features dynamic`
Learn how to handle heterogeneous data with matten using the --features dynamic flag
Dev.to · nabbisen
📰
Compressor Oil Test Rig Data Acquisition: Closed-Loop Monitoring and Oil Condition Trending
Learn to design a data acquisition system for a compressor oil test rig using closed-loop monitoring and oil condition trending
Dev.to · Robin | Mechanical Engineer
📰
Actuarial Science vs Data Science?
Learn how to transition from actuarial science to data science and leverage your math and statistics skills in new areas
Reddit r/datascience
Up next
How to Use VLOOKUP and XLOOKUP in Excel | Step-by-step Guide
Jotform
Watch →