{"id":514,"date":"2021-08-02T00:00:00","date_gmt":"2021-08-02T00:00:00","guid":{"rendered":"https:\/\/en.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/"},"modified":"2025-03-04T06:52:33","modified_gmt":"2025-03-04T14:52:33","slug":"how-to-deploy-tidb-on-google-cloud-platform-part-1","status":"publish","type":"post","link":"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/","title":{"rendered":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1"},"content":{"rendered":"<h2><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This two-part blog series will show you how to get a simple TiDB cluster up and running on Google Cloud Platform (GCP). The goal is to let you quickly set up TiDB and learn about its benefits. The entire process should take you about 30 minutes. In this first part, we&#8217;ll prepare the GCP environment. In the second part, we&#8217;ll set up and run TiDB on GCP.<\/p>\n<p>By the end of this series your architecture will look similar to the following:<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25519\" src=\"https:\/\/static.pingcap.com\/files\/2021\/08\/04065213\/tidb-gcp-reference-architecture.png\" alt=\"tidb-gcp-reference-architecture\" width=\"1306\" height=\"702\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/04065213\/tidb-gcp-reference-architecture.png 1306w, https:\/\/static.pingcap.com\/files\/2021\/08\/04065213\/tidb-gcp-reference-architecture-300x161.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/04065213\/tidb-gcp-reference-architecture-1024x550.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/04065213\/tidb-gcp-reference-architecture-768x413.png 768w\" sizes=\"auto, (max-width: 1306px) 100vw, 1306px\" \/>\n<div class=\"caption-center\">A TiDB\/GCP reference architecture<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Before_you_begin\"><\/span>Before you begin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before you try the steps in this article, make sure you have:<\/p>\n<ul>\n<li>A basic understanding of GCP<\/li>\n<li>Google GCP gcloud installed and configured on your local computer<\/li>\n<li>The MacOS or Linux operating system installed on your local computer<\/li>\n<\/ul>\n<p><strong>Preparing your environment<\/strong><\/p>\n<p>The following diagram shows prerequisite operations. Each row indicates where you perform the corresponding task: either on your <strong>Local<\/strong> computer (or laptop) or on a <strong>GCP instance<\/strong>, which is a virtual machine instance that we will create in GCP.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1404\" height=\"514\" class=\"wp-image-515\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/prerequisite-and-tiup-tidb-operations-architecture.png\" alt=\"Prerequisite and TiUP\/TiDB operations architecture\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/prerequisite-and-tiup-tidb-operations-architecture.png 1404w, https:\/\/static.pingcap.com\/files\/2021\/08\/prerequisite-and-tiup-tidb-operations-architecture-300x110.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/prerequisite-and-tiup-tidb-operations-architecture-1024x375.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/prerequisite-and-tiup-tidb-operations-architecture-768x281.png 768w\" sizes=\"auto, (max-width: 1404px) 100vw, 1404px\" \/>\n<div class=\"caption-center\">Prerequisite and TiUP\/TiDB operations architecture<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Validate_the_Google_gcloud_configuration_on_your_local_computer\"><\/span>Validate the Google gcloud configuration on your local computer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" width=\"1299\" height=\"644\" class=\"wp-image-516\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/validate-google-gcloud-configuration.png\" alt=\"Validate Google gcloud configuration\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/validate-google-gcloud-configuration.png 1299w, https:\/\/static.pingcap.com\/files\/2021\/08\/validate-google-gcloud-configuration-300x149.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/validate-google-gcloud-configuration-1024x508.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/validate-google-gcloud-configuration-768x381.png 768w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/>\n<div class=\"caption-center\">Validate Google gcloud configuration<\/div>\n<p>You should have Google gcloud installed and configured on your local computer. The gcloud configuration should look like this:<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1156\" height=\"291\" class=\"wp-image-517\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/gcloud-configuration.png\" alt=\"gcloud configuration\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-configuration.png 1156w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-configuration-300x76.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-configuration-1024x258.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-configuration-768x193.png 768w\" sizes=\"auto, (max-width: 1156px) 100vw, 1156px\" \/>\n<p>Notice that I&#8217;m using a user account; not a service account. Usually a service account ends with gserviceaccount.com.<\/p>\n<p>In the following example, I have the <code>compute<\/code> configuration set for region and zone. Setting this information is optional. In this tutorial, when we use gcloud commands we will specify where the resource is located.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1264\" height=\"342\" class=\"wp-image-518\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/gcloud-commands.jpg\" alt=\"gcloud commands\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-commands.jpg 1264w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-commands-300x81.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-commands-1024x277.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-commands-768x208.jpg 768w\" sizes=\"auto, (max-width: 1264px) 100vw, 1264px\" \/>\n<h2><span class=\"ez-toc-section\" id=\"Create_a_GCP_instance\"><\/span>Create a GCP instance<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" width=\"1483\" height=\"631\" class=\"wp-image-519\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/create-a-gcp-instance.png\" alt=\"Create a GCP instance\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/create-a-gcp-instance.png 1483w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-a-gcp-instance-300x128.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-a-gcp-instance-1024x436.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-a-gcp-instance-768x327.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-a-gcp-instance-1440x613.png 1440w\" sizes=\"auto, (max-width: 1483px) 100vw, 1483px\" \/>\n<div class=\"caption-center\">Create a GCP instance<\/div>\n<p>Let&#8217;s create a GCP instance where we will run TiDB. Enter the commands below. This may take a few minutes to complete.<\/p>\n<pre><code>gcloud compute instances create tidb-vm \n  --image-family=ubuntu-1804-lts \n  --image-project=ubuntu-os-cloud \n  --machine-type=e2-medium \n  --boot-disk-size=200GB \n  --boot-disk-type=pd-standard \n  --boot-disk-device-name=tidb-vm \n  --zone=us-west1-a\n<\/code><\/pre>\n<p>As a sanity check, you can run the following command to validate that the instance is up and running:<\/p>\n<pre><code>gcloud compute instances list\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1695\" height=\"123\" class=\"wp-image-520\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/gcloud-compute-instances-list.png\" alt=\"gcloud compute instances list\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list.png 1695w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list-300x22.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list-1024x74.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list-768x56.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list-1536x111.png 1536w, https:\/\/static.pingcap.com\/files\/2021\/08\/gcloud-compute-instances-list-1440x104.png 1440w\" sizes=\"auto, (max-width: 1695px) 100vw, 1695px\" \/>\n<p>If you get an error and cannot create an instance, most likely you do not have valid permissions with the GCP account that gcloud is associated with.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"SSH_into_the_new_GCP_Instance\"><\/span>SSH into the new GCP Instance<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" width=\"1441\" height=\"567\" class=\"wp-image-521\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/ssh-into-new-gcp-instance.png\" alt=\"SSH into the new GCP instance\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-into-new-gcp-instance.png 1441w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-into-new-gcp-instance-300x118.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-into-new-gcp-instance-1024x403.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-into-new-gcp-instance-768x302.png 768w\" sizes=\"auto, (max-width: 1441px) 100vw, 1441px\" \/>\n<div class=\"caption-center\">SSH into the new GCP instance<\/div>\n<p>Here we will use the gcloud ssh feature to access our newly-created GCP instance:<\/p>\n<pre><code>gcloud compute ssh --zone \"us-west1-a\" \"tidb-vm\"\n<\/code><\/pre>\n<p>The server we connect to via SSH has a prompt that references the tidb-vm instance. (See the red arrow.)<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1548\" height=\"757\" class=\"wp-image-522\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/tidb-vm-instance.jpg\" alt=\"tidb-vm instance\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance.jpg 1548w, https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance-300x147.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance-1024x501.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance-768x376.jpg 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance-1536x751.jpg 1536w, https:\/\/static.pingcap.com\/files\/2021\/08\/tidb-vm-instance-1440x704.jpg 1440w\" sizes=\"auto, (max-width: 1548px) 100vw, 1548px\" \/>\n<h2><span class=\"ez-toc-section\" id=\"GCP_instance_change_the_service_account_to_a_user_account\"><\/span>GCP instance: change the service account to a user account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" width=\"1471\" height=\"578\" class=\"wp-image-523\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/change-gcloud-account.png\" alt=\"Change the gcloud account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/change-gcloud-account.png 1471w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-gcloud-account-300x118.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-gcloud-account-1024x402.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-gcloud-account-768x302.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-gcloud-account-1440x566.png 1440w\" sizes=\"auto, (max-width: 1471px) 100vw, 1471px\" \/>\n<div class=\"caption-center\">Change the gcloud account<\/div>\n<p><strong>gcloud account<\/strong><\/p>\n<p>We should now be logged into the GCP instance tidb-vm.<\/p>\n<p>To validate our level of access, we can display a list of our GCP instances:<\/p>\n<pre><code>gcloud compute instances lists\n<\/code><\/pre>\n<p>Sometimes you may get an error (as I did below). This was because my account associated with gcloud is a service account that does not have permissions to get a list of instances. A GCP service account is automatically added to your project and used by an application or virtual machine (VM) instance.<\/p>\n<p>Even though you may not get an error, I recommend following the instructions below to change from a service account to your user account.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1321\" height=\"163\" class=\"wp-image-524\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/change-to-user-account.png\" alt=\"change from a service account to your user account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/change-to-user-account.png 1321w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-to-user-account-300x37.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-to-user-account-1024x126.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/change-to-user-account-768x95.png 768w\" sizes=\"auto, (max-width: 1321px) 100vw, 1321px\" \/>\n<p>To check what account we are running, run the following command:<\/p>\n<pre><code>gcloud auth list\n<\/code><\/pre>\n<p>Take note of the account&#8217;s email address and domain. If it ends in compute@developer.gserviceaccount.com, you are running as a service account. For this exercise, we want to execute gcloud commands with our user account.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1435\" height=\"177\" class=\"wp-image-525\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/execute-gcloud-commands-with-user-account.png\" alt=\"Execute gcloud commands with user account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/execute-gcloud-commands-with-user-account.png 1435w, https:\/\/static.pingcap.com\/files\/2021\/08\/execute-gcloud-commands-with-user-account-300x37.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/execute-gcloud-commands-with-user-account-1024x126.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/execute-gcloud-commands-with-user-account-768x95.png 768w\" sizes=\"auto, (max-width: 1435px) 100vw, 1435px\" \/>\n<p><strong>Changing from a service account to a user account<\/strong><\/p>\n<p>To change from a service account to a user account:<\/p>\n<ol>\n<li>Authorize login to gcloud.<\/li>\n<li>Copy the URL and paste it in your browser.<\/li>\n<li>Select the Google Cloud account.<\/li>\n<li>&#8220;Allow&#8221; Google account.<\/li>\n<li>Copy and paste the code to gcloud.<\/li>\n<\/ol>\n<p>To start the process, run the following command:<\/p>\n<pre><code>gcloud auth login\n<\/code><\/pre>\n<p>You will see a long URL (see the image below). Copy this URL and paste it in your browser address bar.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1496\" height=\"825\" class=\"wp-image-526\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/long-url.jpg\" alt=\"A long URL\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/long-url.jpg 1496w, https:\/\/static.pingcap.com\/files\/2021\/08\/long-url-300x165.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/long-url-1024x565.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/long-url-768x424.jpg 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/long-url-1440x794.jpg 1440w\" sizes=\"auto, (max-width: 1496px) 100vw, 1496px\" \/>\n<p>In the browser, select the Google Account that has the permissions you need. In some cases, this may be the same account you used when you created the GCP instance.<\/p>\n<p><strong>Login with your GCP user account<\/strong><\/p>\n<p>To log in to your GCP user account, do the following:<\/p>\n<ol>\n<li>Log in with your GCP user account.\n<img loading=\"lazy\" decoding=\"async\" width=\"1291\" height=\"730\" class=\"wp-image-527\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/log-in-with-gcp-user-account.png\" alt=\"Log in with GCP user account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/log-in-with-gcp-user-account.png 1291w, https:\/\/static.pingcap.com\/files\/2021\/08\/log-in-with-gcp-user-account-300x170.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/log-in-with-gcp-user-account-1024x579.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/log-in-with-gcp-user-account-768x434.png 768w\" sizes=\"auto, (max-width: 1291px) 100vw, 1291px\" \/>\n<div class=\"caption-center\">Log in with your GCP user account<\/div>\n<\/li>\n<li>A screen displayed asking you if the Google Cloud SDK can access your account. Click <strong>Allow<\/strong>.\n<img loading=\"lazy\" decoding=\"async\" width=\"1452\" height=\"865\" class=\"wp-image-528\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/google-cloud-sdk-wants-to-access-account.png\" alt=\"Google Cloud SDK wants to access your account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/google-cloud-sdk-wants-to-access-account.png 1452w, https:\/\/static.pingcap.com\/files\/2021\/08\/google-cloud-sdk-wants-to-access-account-300x179.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/google-cloud-sdk-wants-to-access-account-1024x610.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/google-cloud-sdk-wants-to-access-account-768x458.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/google-cloud-sdk-wants-to-access-account-1440x858.png 1440w\" sizes=\"auto, (max-width: 1452px) 100vw, 1452px\" \/>\n<div class=\"caption-center\">Allow Google Cloud SDK to access your account<\/div>\n<\/li>\n<li>Click the copy button (see arrow below).\n<img loading=\"lazy\" decoding=\"async\" width=\"1416\" height=\"595\" class=\"wp-image-529\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/click-copy-button.png\" alt=\"Click the copy button\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/click-copy-button.png 1416w, https:\/\/static.pingcap.com\/files\/2021\/08\/click-copy-button-300x126.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/click-copy-button-1024x430.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/click-copy-button-768x323.png 768w\" sizes=\"auto, (max-width: 1416px) 100vw, 1416px\" \/>\n<div class=\"caption-center\">Click the copy button<\/div>\n<\/li>\n<li>Paste the verification code from the browser to the gcloud command line.\n<img loading=\"lazy\" decoding=\"async\" width=\"1484\" height=\"798\" class=\"wp-image-530\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/paste-verification-code.jpg\" alt=\"Paste the verification code\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/paste-verification-code.jpg 1484w, https:\/\/static.pingcap.com\/files\/2021\/08\/paste-verification-code-300x161.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/paste-verification-code-1024x551.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/paste-verification-code-768x413.jpg 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/paste-verification-code-1440x774.jpg 1440w\" sizes=\"auto, (max-width: 1484px) 100vw, 1484px\" \/>\n<p>Our user account should now be associated with gcloud.<\/li>\n<li>As a sanity check, let&#8217;s confirm the account we are running with the following command:\n<pre><code>gcloud auth list\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1589\" height=\"795\" class=\"wp-image-531\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/confirm-account.jpg\" alt=\"Confirm the account\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account.jpg 1589w, https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account-300x150.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account-1024x512.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account-768x384.jpg 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account-1536x768.jpg 1536w, https:\/\/static.pingcap.com\/files\/2021\/08\/confirm-account-1440x720.jpg 1440w\" sizes=\"auto, (max-width: 1589px) 100vw, 1589px\" \/>\n<p>If you see that your account is active, then your gcloud is now running under a user account. Let&#8217;s try again to get a list of machines:<\/p>\n<pre><code>gcloud compute instances lists\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1410\" height=\"113\" class=\"wp-image-532\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/get-a-list-of-machines.png\" alt=\"Get a list of machines\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/get-a-list-of-machines.png 1410w, https:\/\/static.pingcap.com\/files\/2021\/08\/get-a-list-of-machines-300x24.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/get-a-list-of-machines-1024x82.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/get-a-list-of-machines-768x62.png 768w\" sizes=\"auto, (max-width: 1410px) 100vw, 1410px\" \/>\n<p>While this doesn&#8217;t prove that we have all the access we will need, it is a good baseline.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Create_SSH_keys_for_TiUP\"><\/span>Create SSH keys for TiUP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Think of <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/production-deployment-using-tiup\">TiUP<\/a> as a package manager that makes it easier to manage different cluster components in the TiDB ecosystem. We will install TiUP in Part 2, but here we will go ahead and configure SSH for TiUP.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1399\" height=\"550\" class=\"wp-image-533\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/create-ssh-keys-for-tiup.png\" alt=\"Create SSH keys for TiUP\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/create-ssh-keys-for-tiup.png 1399w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-ssh-keys-for-tiup-300x118.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-ssh-keys-for-tiup-1024x403.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/create-ssh-keys-for-tiup-768x302.png 768w\" sizes=\"auto, (max-width: 1399px) 100vw, 1399px\" \/>\n<div class=\"caption-center\">Create SSH keys for TiUP<\/div>\n<p>TiUP uses SSH, so first we will need to configure SSH.<\/p>\n<p>Let&#8217;s see what&#8217;s in the .ssh directory:<\/p>\n<pre><code>ls -al .ssh\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1414\" height=\"213\" class=\"wp-image-534\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/ssh-directory.png\" alt=\"The .ssh directory\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-directory.png 1414w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-directory-300x45.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-directory-1024x154.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/ssh-directory-768x116.png 768w\" sizes=\"auto, (max-width: 1414px) 100vw, 1414px\" \/>\n<p>There are no actual keys in this directory. We can use gcloud to create the SSH keys that TiUP will need.<\/p>\n<p>When you run the following command, you will be prompted to enter a passphrase. For simplicity, do not enter a passphrase. Just hit Return to provide an empty passphrase.<\/p>\n<pre><code>gcloud compute config-ssh\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1494\" height=\"811\" class=\"wp-image-535\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/provide-empty-passphrase.jpg\" alt=\"Provide an empty passphrase\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/provide-empty-passphrase.jpg 1494w, https:\/\/static.pingcap.com\/files\/2021\/08\/provide-empty-passphrase-300x163.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/provide-empty-passphrase-1024x556.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/provide-empty-passphrase-768x417.jpg 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/provide-empty-passphrase-1440x782.jpg 1440w\" sizes=\"auto, (max-width: 1494px) 100vw, 1494px\" \/>\n<p>As a sanity check, let&#8217;s see what files were created:<\/p>\n<pre><code>ls -al .ssh\/\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1577\" height=\"335\" class=\"wp-image-536\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/what-files-were-created.png\" alt=\"Check what files were created\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created.png 1577w, https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created-300x64.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created-1024x218.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created-768x163.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created-1536x326.png 1536w, https:\/\/static.pingcap.com\/files\/2021\/08\/what-files-were-created-1440x306.png 1440w\" sizes=\"auto, (max-width: 1577px) 100vw, 1577px\" \/>\n<p>Note that we now have three new files. The primary file we are interested in is the <code>google_compute_engine<\/code>, which is the private key that TiUP will use for SSH.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Open_TiDB_ports_on_the_GCP_network\"><\/span>Open TiDB ports on the GCP network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You will want to access TiDB resources (TiDB Dashboard, Grafana, and Prometheus) from a browser on your local computer. To do this, you will need to open ports on the GCP network by creating a GCP firewall rule.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1599\" height=\"767\" class=\"wp-image-537\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/open-tidb-ports.png\" alt=\"Open TiDB ports\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports.png 1599w, https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports-300x144.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports-1024x491.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports-768x368.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports-1536x737.png 1536w, https:\/\/static.pingcap.com\/files\/2021\/08\/open-tidb-ports-1440x691.png 1440w\" sizes=\"auto, (max-width: 1599px) 100vw, 1599px\" \/>\n<div class=\"caption-center\">Open TiDB ports<\/div>\n<p>In the steps below, we&#8217;ll create a firewall rule that allows only our local computer to access TiDB resources.<\/p>\n<p>Let&#8217;s get our local computer public IP Address. Here&#8217;s a <a href=\"https:\/\/www.cyberciti.biz\/faq\/how-to-find-my-public-ip-address-from-command-line-on-a-linux\/\">link<\/a> that provides different ways of getting your local IP.<\/p>\n<p>We want our local computer IP address, <strong>NOT<\/strong> the GCP instance IP address. Therefore, run the following command on your local computer. For me, I&#8217;m running the following command on my MacBook<sup>\u00ae<\/sup>. Note in the image below that the command prompt does not include tidb-vm.<\/p>\n<pre><code>host myip.opendns.com resolver1.opendns.com\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1397\" height=\"324\" class=\"wp-image-538\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/command-prompt-does-not-include-tidb-vm.png\" alt=\"The command prompt does not include tidb-vm\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/command-prompt-does-not-include-tidb-vm.png 1397w, https:\/\/static.pingcap.com\/files\/2021\/08\/command-prompt-does-not-include-tidb-vm-300x70.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/command-prompt-does-not-include-tidb-vm-1024x237.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/command-prompt-does-not-include-tidb-vm-768x178.png 768w\" sizes=\"auto, (max-width: 1397px) 100vw, 1397px\" \/>\n<p>Notice the blurred-out IP address above. This is the IP address used in the following steps. Your IP address will be different and unique.<\/p>\n<p>Let&#8217;s go back to our GCP instance and look at the current firewall rules:<\/p>\n<pre><code>gcloud compute firewall-rules list\n<\/code><\/pre>\n<p>By default, GCP already has some firewall rules. We will create a new firewall rule because all the ports on a cloud instance are closed by default, and we need to tell the firewall which ports should be open. This way, we only open the necessary ports to retain security and prevent cyber-attacks.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1419\" height=\"249\" class=\"wp-image-539\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/firewall-rule.png\" alt=\"firewall rule\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/firewall-rule.png 1419w, https:\/\/static.pingcap.com\/files\/2021\/08\/firewall-rule-300x53.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/firewall-rule-1024x180.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/firewall-rule-768x135.png 768w\" sizes=\"auto, (max-width: 1419px) 100vw, 1419px\" \/>\n<p>We&#8217;ll make the following TiDB ports available to our local computer:<\/p>\n<ul>\n<li>TiDB SQL Client: 4000<\/li>\n<li>Grafana: 3000<\/li>\n<li>Prometheus: 9090<\/li>\n<li>TiDB Dashboard: 2379<\/li>\n<\/ul>\n<p>You can see a list of all the TiDB ports <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/hardware-and-software-requirements#network-requirements\">\uc5ec\uae30<\/a>.<\/p>\n<p>Let&#8217;s create a firewall rule with our local IP Address.<\/p>\n<p>In the code example below, for the parameter <code>--source-ranges<\/code>, replace <code>&lt;Your Local IP&gt;<\/code> with your own local IP Address; however, keep the <code>\/32<\/code>. This will limit access from your specific IP address.<\/p>\n<pre><code>gcloud compute firewall-rules create access-from-home \n\n  --allow tcp:4000,tcp:3000,tcp:9090,tcp:2379 \n\n  --description=\"Allow traffic from my personal computer\" \n\n  --source-ranges=\"&lt;Your Local IP&gt;\/32\"\n<\/code><\/pre>\n<p>I added port 2379 to the above command. This port is different from the one shown below.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1450\" height=\"293\" class=\"wp-image-540\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/port.png\" alt=\"Port\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/port.png 1450w, https:\/\/static.pingcap.com\/files\/2021\/08\/port-300x61.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/port-1024x207.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/port-768x155.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/port-1440x291.png 1440w\" sizes=\"auto, (max-width: 1450px) 100vw, 1450px\" \/>\n<p>In Part 2 of our series, we will use these ports to access TiDB from our local computer.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install_a_MySQL_client\"><\/span>Install a MySQL client<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" width=\"1501\" height=\"571\" class=\"wp-image-541\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/install-a-mysql-client.png\" alt=\"Install a MySQL client\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client.png 1501w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-300x114.png 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-1024x390.png 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-768x292.png 768w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-1440x548.png 1440w\" sizes=\"auto, (max-width: 1501px) 100vw, 1501px\" \/>\n<div class=\"caption-center\">Install a MySQL client<\/div>\n<p>TiDB is <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/mysql-compatibility\">fully compatible with the MySQL 5.7 protocol<\/a> and the common features and syntax of MySQL 5.7.<\/p>\n<p>In Part 2, we will install TiDB and access it with a MySQL client. Here, we will first install a MySQL client using <code>apt-get<\/code>:<\/p>\n<pre><code>sudo apt-get update\n<\/code><\/pre>\n<pre><code>sudo apt-get install mysql-client\n<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" width=\"1349\" height=\"467\" class=\"wp-image-542\" src=\"https:\/\/en.pingcap.com\/wp-content\/uploads\/2021\/08\/install-a-mysql-client-using-apt-get.jpg\" alt=\"Install a MySQL client using apt-get\" srcset=\"https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-using-apt-get.jpg 1349w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-using-apt-get-300x104.jpg 300w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-using-apt-get-1024x354.jpg 1024w, https:\/\/static.pingcap.com\/files\/2021\/08\/install-a-mysql-client-using-apt-get-768x266.jpg 768w\" sizes=\"auto, (max-width: 1349px) 100vw, 1349px\" \/>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You should now have a GCP instance set up where you&#8217;ll be able to install and run a simple TiDB environment. Check out <a href=\"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-2\/\">Part 2<\/a> where we install and run TiDB!<\/p>","protected":false},"excerpt":{"rendered":"<p>This two-part blog series will teach you how to get a TiDB cluster up and running on Google Cloud Platform. The first part shows how to prepare your GCP environment.<\/p>","protected":false},"author":63,"featured_media":544,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[13],"tags":[15,29],"class_list":["post-514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product","tag-cloud","tag-tutorial"],"acf":[],"featured_image_src":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","author_info":{"display_name":"Mike Barlow","author_link":"https:\/\/www.pingcap.com\/ko\/blog\/author\/mike-barlow\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB<\/title>\n<meta name=\"description\" content=\"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post &quot;How to Deploy TiDB on Google Cloud Platform\u2014Part 1&quot; here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB\" \/>\n<meta property=\"og:description\" content=\"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post &quot;How to Deploy TiDB on Google Cloud Platform\u2014Part 1&quot; here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-02T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-04T14:52:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mike Barlow\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Barlow\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\"},\"author\":{\"name\":\"Mike Barlow\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/aa2626fdb759293c472ca551624c7ddc\"},\"headline\":\"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\",\"datePublished\":\"2021-08-02T00:00:00+00:00\",\"dateModified\":\"2025-03-04T14:52:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\"},\"wordCount\":1380,\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\",\"keywords\":[\"Cloud\",\"Tutorial\"],\"articleSection\":[\"Product\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\",\"url\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\",\"name\":\"How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\",\"datePublished\":\"2021-08-02T00:00:00+00:00\",\"dateModified\":\"2025-03-04T14:52:33+00:00\",\"description\":\"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post \\\"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\\\" here.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage\",\"url\":\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\",\"width\":2560,\"height\":853,\"caption\":\"deploy-tidb-on-google-cloud-platform-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pingcap.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pingcap.com\/#website\",\"url\":\"https:\/\/www.pingcap.com\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pingcap.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pingcap.com\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\/\/www.pingcap.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pingcap2015\",\"https:\/\/x.com\/PingCAP\",\"https:\/\/linkedin.com\/company\/pingcap\",\"https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/aa2626fdb759293c472ca551624c7ddc\",\"name\":\"Mike Barlow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"caption\":\"Mike Barlow\"},\"url\":\"https:\/\/www.pingcap.com\/ko\/blog\/author\/mike-barlow\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB","description":"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post \"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\" here.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/","og_locale":"ko_KR","og_type":"article","og_title":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB","og_description":"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post \"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\" here.","og_url":"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_published_time":"2021-08-02T00:00:00+00:00","article_modified_time":"2025-03-04T14:52:33+00:00","og_image":[{"width":2560,"height":853,"url":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","type":"image\/jpeg"}],"author":"Mike Barlow","twitter_card":"summary_large_image","twitter_creator":"@PingCAP","twitter_site":"@PingCAP","twitter_misc":{"Written by":"Mike Barlow","Est. reading time":"7\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#article","isPartOf":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/"},"author":{"name":"Mike Barlow","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/aa2626fdb759293c472ca551624c7ddc"},"headline":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1","datePublished":"2021-08-02T00:00:00+00:00","dateModified":"2025-03-04T14:52:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/"},"wordCount":1380,"publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","keywords":["Cloud","Tutorial"],"articleSection":["Product"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/","url":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/","name":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1 | TiDB","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","datePublished":"2021-08-02T00:00:00+00:00","dateModified":"2025-03-04T14:52:33+00:00","description":"Learn about the benefits of TiDB and the TiDB Cloud solutions from PingCAP. Read our latest post \"How to Deploy TiDB on Google Cloud Platform\u2014Part 1\" here.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#primaryimage","url":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg","width":2560,"height":853,"caption":"deploy-tidb-on-google-cloud-platform-1"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"How to Deploy TiDB on Google Cloud Platform\u2014Part 1"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]},{"@type":"Person","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/aa2626fdb759293c472ca551624c7ddc","name":"Mike Barlow","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/","url":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","contentUrl":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","caption":"Mike Barlow"},"url":"https:\/\/www.pingcap.com\/ko\/blog\/author\/mike-barlow\/"}]}},"grav_blocks":false,"card_markup":"<a class=\"card-resource bg-white\" href=\"https:\/\/www.pingcap.com\/ko\/blog\/how-to-deploy-tidb-on-google-cloud-platform-part-1\/\"><div class=\"card-resource__image-container\"><img class=\"card-resource__image\" alt=\"deploy-tidb-on-google-cloud-platform-1\" src=\"https:\/\/static.pingcap.com\/files\/2021\/08\/deploy-tidb-on-google-cloud-platform-1-scaled.jpg\" loading=\"lazy\" width=2560 height=853 \/><\/div><div class=\"card-resource__content-container\"><div class=\"card-resource__content-head\"><div class=\"card-resource__category\">Product<\/div><\/div><h5 class=\"card-resource__title\">How to Deploy TiDB on Google Cloud Platform\u2014Part 1<\/h5><\/div><\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":2,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":25520,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/514\/revisions\/25520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media\/544"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}