Compute Engine์ ์ฌ์ฉํ๋ฉด Google ์ธํ๋ผ์์ ์ธ์คํด์ค๋ฅผ ๋ง๋ค๊ณ ์คํํ ์ ์์ต๋๋ค. ์ด ๋ฌธ์์์๋ Compute Engine ์ธ์คํด์ค๋ฅผ ๋ง๋๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค.
Compute Engine ์ธ์คํด์ค, ์ปดํจํ ์ธ์คํด์ค ๋๋ ์ธ์คํด์ค๋ผ๋ ์ฉ์ด๋ ๋์์ด์ ๋๋ค. ์ง์ ํ๋ ๋จธ์ ์ ํ์ ๋ฐ๋ผ ์ธ์คํด์ค๋ ๋ค์๊ณผ ๊ฐ์ด ๋ฒ ์ด๋ฉํ ์ธ์คํด์ค ๋๋ ๊ฐ์ ๋จธ์ (VM) ์ธ์คํด์ค ์ค ํ๋๊ฐ ๋ ์ ์์ต๋๋ค.
- ๋จธ์ ์ ํ์ ์ด๋ฆ์ด
-metal
๋ก ๋๋๋ ๊ฒฝ์ฐ ์ธ์คํด์ค๊ฐ ํ์ดํผ๋ฐ์ด์ ๊ฐ ์ค์น๋์ง ์์ ๋ฒ ์ด๋ฉํ ์ธ์คํด์ค์ ๋๋ค. - ๊ทธ๋ ์ง ์์ผ๋ฉด ์ธ์คํด์ค๊ฐ VM ์ธ์คํด์ค์ ๋๋ค. ๊ฐ์ ๋จธ์ ์ธ์คํด์ค, VM ์ธ์คํด์ค, VM์ ๋์์ด์ ๋๋ค.
๋์์ด๋ ๋ฌธ์ ๋ฐ Google Cloud ์ธํฐํ์ด์ค(์: Google Cloud ์ฝ์, gcloud ๋ช ๋ น์ค ๋๊ตฌ, REST API)์์ ์๋ก ๋ฐ๊ฟ์ ์ฌ์ฉ๋ฉ๋๋ค.
์ด ๋ฌธ์์ ์๋ด์์๋ ์ธ์คํด์ค ์์ฑ์ ๋ํด ์๊ฐํ๊ณ ์ธ์คํด์ค ์์ฑ์ ์์์ ์ ์ ๊ณตํ ๋ฟ์ ๋๋ค. ๊ตฌ์ฒด์ ์ด๊ฑฐ๋ ๋ณต์กํ ๊ตฌ์ฑ์ผ๋ก ์ธ์คํด์ค๋ฅผ ๋ง๋๋ ์์ธํ ๋จ๊ณ๋ ํน์ ๊ตฌ์ฑ์ผ๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ ๋ฐ ์์ํ๊ธฐ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
์์ํ๊ธฐ ์ ์
- ์ธ์คํด์ค ๋ง๋ค๊ธฐ์ ๊ดํ ๊ธฐ๋ณธ์ฌํญ์ ๊ฒํ ํฉ๋๋ค.
-
์์ง ์ธ์ฆ์ ์ค์ ํ์ง ์์๋ค๋ฉด ์ค์ ํฉ๋๋ค.
์ธ์ฆ์ Google Cloud ์๋น์ค ๋ฐ API์ ์ก์ธ์คํ๊ธฐ ์ํด ID๋ฅผ ํ์ธํ๋ ํ๋ก์ธ์ค์
๋๋ค.
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ฝ๋ ๋๋ ์ํ์ ์คํํ๋ ค๋ฉด ๋ค์ ์ต์
์ค ํ๋๋ฅผ ์ ํํ์ฌ Compute Engine์ ์ธ์ฆํ๋ฉด ๋ฉ๋๋ค.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
-
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
- Set a default region and zone.
Terraform
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Terraform ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
C#
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ .NET ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
Go
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Go ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
Java
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Java ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
Node.js
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Node.js ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
PHP
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ PHP ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
Python
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Python ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
Ruby
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ Ruby ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI๋ฅผ ์ค์นํ๊ณ ์ด๊ธฐํํ ํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ ํ๋ฆฌ์ผ์ด์ ๊ธฐ๋ณธ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ค์ ํฉ๋๋ค.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ ๋ค์์ ์ฐธ์กฐํ์ธ์: Set up authentication for a local development environment.
REST
๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ด ํ์ด์ง์ REST API ์ํ์ ์ฌ์ฉํ๋ ค๋ฉด gcloud CLI์ ์ ๊ณตํ ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ฌ์ฉํฉ๋๋ค.
Install the Google Cloud CLI.
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
์์ธํ ๋ด์ฉ์ Google Cloud ์ธ์ฆ ๋ฌธ์์ REST ์ฌ์ฉ์ ์ํ ์ธ์ฆ์ ์ฐธ์กฐํ์ธ์.
-
ํ์ํ ์ญํ
์ธ์คํด์ค๋ฅผ ๋ง๋๋ ๋ฐ ํ์ํ ๊ถํ์ ์ป์ผ๋ ค๋ฉด ๊ด๋ฆฌ์์๊ฒ ํ๋ก์ ํธ์ ๋ํ Compute ์ธ์คํด์ค ๊ด๋ฆฌ์(v1)(roles/compute.instanceAdmin.v1
) IAM ์ญํ ์ ๋ถ์ฌํด ๋ฌ๋ผ๊ณ ์์ฒญํ์ธ์.
์ญํ ๋ถ์ฌ์ ๋ํ ์์ธํ ๋ด์ฉ์ ํ๋ก์ ํธ, ํด๋, ์กฐ์ง์ ๋ํ ์ก์ธ์ค ๊ด๋ฆฌ๋ฅผ ์ฐธ์กฐํ์ธ์.
์ด ์ฌ์ ์ ์๋ ์ญํ ์๋ ์ธ์คํด์ค๋ฅผ ๋ง๋๋ ๋ฐ ํ์ํ ๊ถํ์ด ํฌํจ๋์ด ์์ต๋๋ค. ํ์ํ ์ ํํ ๊ถํ์ ๋ณด๋ ค๋ฉด ํ์ ๊ถํ ์น์ ์ ํผ์น์ธ์.
ํ์ ๊ถํ
์ธ์คํด์ค๋ฅผ ๋ง๋ค๋ ค๋ฉด ๋ค์ ๊ถํ์ด ํ์ํฉ๋๋ค.
- ํ๋ก์ ํธ์ ๋ํ
compute.instances.create
๊ถํ -
์ปค์คํ
์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ์ฌ VM ๋ง๋ค๊ธฐ: ์ด๋ฏธ์ง์ ๋ํ
compute.images.useReadOnly
๊ถํ -
์ค๋
์ท์ ์ฌ์ฉํ์ฌ VM ๋ง๋ค๊ธฐ: ์ค๋
์ท์ ๋ํ
compute.snapshots.useReadOnly
๊ถํ -
์ธ์คํด์ค ํ
ํ๋ฆฟ์ ์ฌ์ฉํ์ฌ VM ๋ง๋ค๊ธฐ: ์ธ์คํด์ค ํ
ํ๋ฆฟ์ ๋ํ
compute.instanceTemplates.useReadOnly
๊ถํ -
VM์ ๋ ๊ฑฐ์ ๋คํธ์ํฌ ํ ๋น: ํ๋ก์ ํธ์ ๋ํ
compute.networks.use
๊ถํ -
VM์ ๊ณ ์ IP ์ฃผ์ ์ง์ : ํ๋ก์ ํธ์ ๋ํ
compute.addresses.use
๊ถํ -
๋ ๊ฑฐ์ ๋คํธ์ํฌ ์ฌ์ฉ ์ VM์ ์ธ๋ถ IP ์ฃผ์ ํ ๋น: ํ๋ก์ ํธ์ ๋ํ
compute.networks.useExternalIp
๊ถํ -
VM์ ์๋ธ๋ท ์ง์ : ํ๋ก์ ํธ ๋๋ ์ ํํ ์๋ธ๋ท์ ๋ํ
compute.subnetworks.use
๊ถํ -
VPC ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ ๋ VM์ ์ธ๋ถ IP ์ฃผ์ ํ ๋น: ํ๋ก์ ํธ ๋๋ ์ ํํ ์๋ธ๋ท์ ๋ํ
compute.subnetworks.useExternalIp
๊ถํ -
VM์ VM ์ธ์คํด์ค ๋ฉํ๋ฐ์ดํฐ ์ค์ : ํ๋ก์ ํธ์ ๋ํ
compute.instances.setMetadata
๊ถํ -
VM์ ํ๊ทธ ์ค์ : VM์ ๋ํ
compute.instances.setTags
๊ถํ -
VM์ ๋ผ๋ฒจ ์ค์ : VM์ ๋ํ
compute.instances.setLabels
๊ถํ -
VM์ ์ฌ์ฉํ ์๋น์ค ๊ณ์ ์ค์ : VM์ ๋ํ
compute.instances.setServiceAccount
๊ถํ -
VM์ ์ ๋์คํฌ ๋ง๋ค๊ธฐ: ํ๋ก์ ํธ์ ๋ํ
compute.disks.create
๊ถํ -
๊ธฐ์กด ๋์คํฌ๋ฅผ ์ฝ๊ธฐ ์ ์ฉ ๋๋ ์ฝ๊ธฐ-์ฐ๊ธฐ ๋ชจ๋๋ก ์ฐ๊ฒฐ: ๋์คํฌ์ ๋ํ
compute.disks.use
๊ถํ -
๊ธฐ์กด ๋์คํฌ๋ฅผ ์ฝ๊ธฐ ์ ์ฉ ๋ชจ๋๋ก ์ฐ๊ฒฐ: ๋์คํฌ์ ๋ํ
compute.disks.useReadOnly
๊ถํ
์ปค์คํ ์ญํ ์ด๋ ๋ค๋ฅธ ์ฌ์ ์ ์๋ ์ญํ ์ ์ฌ์ฉํ์ฌ ์ด ๊ถํ์ ๋ถ์ฌ๋ฐ์ ์๋ ์์ต๋๋ค.
์ธ์คํด์ค๋ฅผ ๋ง๋ค๊ณ ์์ํ๋ ๋ฐฉ๋ฒ
์ด ์น์ ์์๋ Compute Engine ์ธ์คํด์ค๋ฅผ ๋ง๋ค๊ณ ์์ํ๋ ๋ฐ ์ฌ์ฉํ ์ ์๋ ๊ธฐ๋ณธ ๋ฉ์๋๋ฅผ ์๊ฐํฉ๋๋ค. ํนํ ์ธ์คํด์ค๋ฅผ ๋ง๋๋ ๋ฐฉ๋ฒ์ ๋ฐฐ์ฐ๋ ๋์์๋ Google Cloud ์ฝ์, Google Cloud CLI ๋๋ REST API๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ด๋ฌํ ๊ฐ ๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ ์ธ์คํด์ค๋ฅผ ๋ง๋๋ ์ผ๋ฐ์ ์ธ ํ๋ก์ธ์ค์ ๋ํด ์์๋ณด๋ ค๋ฉด ๋ค์ ์๋ด๋ฅผ ๊ฒํ ํ์ธ์.
์ฝ์
Google Cloud ์ฝ์์์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
์ธ์คํด์ค ๋ง๋ค๊ธฐ๋ก ์ด๋
์ธ์คํด์ค ๋ง๋ค๊ธฐ ํ๋ฉด์ด ํ์๋๊ณ ๋จธ์ ๊ตฌ์ฑ ์ฐฝ์ด ํ์๋ฉ๋๋ค.
์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๋ค์๊ณผ ๊ฐ์ด ํ์ ๋ฉ๋ด์ ์ต์ ์ ์ฌ์ฉํ์ธ์.
์ด๋ฆ, ์์น ๋๋ ๋จธ์ ๊ตฌ์ฑ๊ณผ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๋จธ์ ๊ตฌ์ฑ์ ํด๋ฆญํฉ๋๋ค. ํ์๋๋ ๋จธ์ ๊ตฌ์ฑ ์ฐฝ์์ ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๋ํ ๊ฐ์ ์ง์ ํฉ๋๋ค.
๋ถํ ๋์คํฌ, ์ด์์ฒด์ (OS), ์ถ๊ฐ ๋น๋ถํ ์คํ ๋ฆฌ์ง ์ต์ ๊ณผ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด OS ๋ฐ ์คํ ๋ฆฌ์ง๋ฅผ ํด๋ฆญํฉ๋๋ค. ํ์๋๋ ์ด์์ฒด์ ๋ฐ ์คํ ๋ฆฌ์ง ์ฐฝ์์ ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๊ฐ์ ์ง์ ํฉ๋๋ค.
๋คํธ์ํฌ ์ธํฐํ์ด์ค ๋ฐ ๋ฐฉํ๋ฒฝ ์ค์ ๊ณผ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๋คํธ์ํน์ ํด๋ฆญํฉ๋๋ค. ํ์๋๋ ๋คํธ์ํน ์ฐฝ์์ ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๊ฐ์ ์ง์ ํฉ๋๋ค.
์ด์ ์์ด์ ํธ ๋ฐ ๊ฐ์ ๋์คํ๋ ์ด์ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๋ชจ๋ํฐ๋ง ๊ฐ๋ฅ์ฑ์ ํด๋ฆญํฉ๋๋ค. ํ์๋๋ ๋ชจ๋ํฐ๋ง ๊ฐ๋ฅ์ฑ ์ฐฝ์์ ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๋ํ ๊ฐ์ ์ง์ ํฉ๋๋ค.
๋ณด์ ๋ฐ ์ก์ธ์ค์ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๋ณด์์ ํด๋ฆญํฉ๋๋ค. ๋ณด์ ์ฐฝ์ด ์ด๋ฆฌ๋ฉด ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๊ฐ์ ์ง์ ํฉ๋๋ค.
๋ฉํ๋ฐ์ดํฐ, ์์ฝ, ๋ฆฌ์์ค ์กฐ์ง, ํ๋ก๋น์ ๋ ์ ํ ๋ฐ ์ ์ฉ ํ ๋์์ ๊ด๋ จ๋ ์ธ์คํด์ค ์์ฑ์ ๊ตฌ์ฑํ๋ ค๋ฉด ๊ณ ๊ธ์ ํด๋ฆญํฉ๋๋ค. ์ด๋ฆฌ๋ ๊ณ ๊ธ ์ฐฝ์์ ๊ตฌ์ฑํ๋ ค๋ ์์ฑ์ ๊ฐ์ ์ง์ ํฉ๋๋ค.
์ธ์คํด์ค๋ฅผ ๋ง๋ค๊ณ ์์ํ๋ ค๋ฉด ๋ง๋ค๊ธฐ๋ฅผ ํด๋ฆญํฉ๋๋ค.
gcloud
์์ฒด ๊ตฌ์ฑ์ผ๋ก ์ธ์คํด์ค๋ฅผ ๋ง๋ค๋ ค๋ฉด gcloud compute instances create
๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค.
์ด ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์ผ๊ด ์ธ์คํด์ค ๋๋ ์ปจํ ์ด๋ ์ด๋ฏธ์ง๋ฅผ ์คํํ๋ ์ธ์คํด์ค๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค. ๋์ ๋ค์ ๋จ๊ณ๋ฅผ ๋ฐ๋ฆ ๋๋ค.
- ์ธ์คํด์ค๋ฅผ ์ผ๊ด์ ์ผ๋ก ๋ง๋ค๋ ค๋ฉด
gcloud compute instances bulk create
๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค. - ์ปจํ
์ด๋๋ฅผ ๋ฐฐํฌํ ์ธ์คํด์ค๋ฅผ ๋ง๋ค๋ ค๋ฉด
gcloud compute instances create-with-container
๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค.
REST
์์ฒด ๊ตฌ์ฑ์ผ๋ก ์ธ์คํด์ค๋ฅผ ๋ง๋ค๋ ค๋ฉด instances.insert
๋ฉ์๋์ POST
์์ฒญ์ ์ ์กํฉ๋๋ค.
์ด ๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ ์ผ๊ด ์ธ์คํด์ค๋ฅผ ๋ง๋ค ์๋ ์์ต๋๋ค.
๋์ instances.bulkInsert
๋ฉ์๋์ ๋ํด POST
์์ฒญ์ ์คํํฉ๋๋ค.
ํน์ ๊ตฌ์ฑ์ผ๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ ๋ฐ ์์
๋ค์ ๋ฌธ์์์๋ ํ๋ ์ด์์ ํน์ ๊ตฌ์ฑ ์ต์ ์ ์ฌ์ฉํ๋ ์ธ์คํด์ค๋ฅผ ๋ง๋ค๊ณ ์์ํ๋ ๋ฐฉ๋ฒ์ ์๋ดํฉ๋๋ค. ์ฌ์ฉ ์ฌ๋ก์ ๋ฐ๋ผ ์ง์นจ์ ๊ฒฐํฉํ์ฌ ์ฌ๋ฌ ๋ฌธ์์ ๊ตฌ์ฑ ์ต์ ์ ์ฌ์ฉํ๋ ์ธ์คํด์ค๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค.
- ์ฌ์ ๊ตฌ์ฑ๋จ
- Google์์ ๊ตฌ์ฑํ๊ณ ์ํฌ๋ก๋์ ์ต์ ํ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๋ง์ถค์ค์ ๋ ๋จธ์ ๊ตฌ์ฑ
- ์ปค์คํ ํธ์คํธ ์ด๋ฆ์ผ๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์ปค์คํ ๋จธ์ ์ ํ์ผ๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์ฐ๊ฒฐ๋ GPU๊ฐ ์๋ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์ธ์คํด์ค์ ์ต์ CPU ํ๋ซํผ ์ง์ ํ๊ธฐ
- ๋ง์ถค์ค์ ๋ OS ๊ตฌ์ฑ
- ๊ณต๊ฐ ์ด๋ฏธ์ง๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์ปค์คํ ์ด๋ฏธ์ง๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๊ณต์ ์ด๋ฏธ์ง๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- RHEL BYOS ์ด๋ฏธ์ง๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๋ง์ถค์ค์ ๋ ๋คํธ์ํน ๊ตฌ์ฑ
- ํน์ ์๋ธ๋ท์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- gVNIC ๋คํธ์ํฌ ์ธํฐํ์ด์ค๋ฅผ ์ฌ์ฉํ๋ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๋ ๋์ ๋์ญํญ์ผ๋ก ์ธ์คํด์ค ๊ตฌ์ฑํ๊ธฐ
- ๋ง์ถค์ค์ ๋ ๋ชจ๋ํฐ๋ง ๊ฐ๋ฅ์ฑ ๊ตฌ์ฑ
- ์ด์ ์์ด์ ํธ ๋ชจ๋ํฐ๋ง ๋ฐ ๋ก๊น ์ ์ํด ๊ตฌ์ฑ๋ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์ธ์คํด์ค์์ ๊ฐ์ ๋์คํ๋ ์ด ์ฌ์ฉ ์ค์ ํ๊ธฐ
- ๋ง์ถค์ค์ ๋ ๋ณด์ ๊ตฌ์ฑ
- ์ฌ์ฉ์ ๊ด๋ฆฌํ ์๋น์ค ๊ณ์ ์ ์ฌ์ฉํ๋ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๊ด๋ฆฌํ ์ํฌ๋ก๋ ID๊ฐ ์ฌ์ฉ ์ค์ ๋ VM ๋ง๋ค๊ธฐ
- VM ์์ฑ ์ค์ OS ๋ก๊ทธ์ธ ์ฌ์ฉ ์ค์ ํ๊ธฐ
- ๋ฐฑ์ ์์
- ๋จธ์ ์ด๋ฏธ์ง์์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๋์คํฌ ์ค๋ ์ท์์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- Backup Vault์์ ์ธ์คํด์ค ๋ณต์ํ๊ธฐ
- ๊ธฐ์กด ๊ตฌ์ฑ์์
- ์ธ์คํด์ค ํ ํ๋ฆฟ์์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๊ธฐ์กด ์ธ์คํด์ค์ ์ ์ฌํ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ํน์ ์ํฌ๋ก๋์ ๋ง๊ฒ ๋ง์ถค์ค์
- ์ปจํ ์ด๋๋ฅผ ๋ฐฐํฌํ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- Windows Server ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- SQL Server ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๊ณ ์ฑ๋ฅ ์ปดํจํ (HPC) ์ด๋ฏธ์ง๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ๋ง์ถค์ค์ ๋ ํ๋ก๋น์ ๋ ์ ํ
- Spot ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ์์ฝ๋ ์ธ์คํด์ค๋ฅผ ์ฌ์ฉํ๋ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ํ ๋ฒ์ ์ฌ๋ฌ VM ๋ฐ ์ธ์คํด์ค
- ์ธ์คํด์ค ์ผ๊ด ์์ฑ
- ๊ด๋ฆฌํ ์ธ์คํด์ค ๊ทธ๋ฃน(MIG) ๋ง๋ค๊ธฐ
- ๋จ๋ ํ ๋ํธ ๋ ธ๋
- ๋จ๋ ํ ๋ํธ ๋ ธ๋์์ ์ธ์คํด์ค ๋ง๋ค๊ธฐ
- ํจ์จ์ ์ธ ์ธ์คํด์ค
- ์ฐ๊ฒฐ๋ ์ธ์คํด์ค ์ผ์ ์ผ๋ก ์ธ์คํด์ค ๋ง๋ค๊ธฐ
๋ฌธ์ ํด๊ฒฐ
์ผ๋ฐ์ ์ธ ์ธ์คํด์ค ์์ฑ ์ค๋ฅ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ์ฐพ์ผ๋ ค๋ฉด ์ธ์คํด์ค ์์ฑ ๋ฌธ์ ํด๊ฒฐ์ ์ฐธ๊ณ ํ์ธ์.
๋ค์ ๋จ๊ณ
- ์ธ์คํด์ค ์ํ๋ฅผ ํ์ธํ์ฌ ์ฌ์ฉ ์ค๋น๊ฐ ๋์๋์ง ํ์ธํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ
- ์ธ์คํด์ค ์ฐ๊ฒฐ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ
- ์ธ์คํด์ค๋ฅผ ์ธ์คํด์ค ๊ทธ๋ฃน์ผ๋ก ํ์ฅํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ
- ์ธ์คํด์ค ์ฉ๋์ ์์ฝํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ
- ์ฝ์ ์ฌ์ฉ ํ ์ธ ๋ฐ ์ง์ ์ฌ์ฉ ํ ์ธ์ ํตํด ์ธ์คํด์ค ๋น์ฉ์ ์ ์ฝํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ
์ง์ ์ฌ์ฉํด ๋ณด๊ธฐ
Google Cloud๋ฅผ ์ฒ์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ ๊ณ์ ์ ๋ง๋ค์ด ์ค์ ์๋๋ฆฌ์ค์์ Compute Engine์ ์ฑ๋ฅ์ ํ๊ฐํ ์ ์์ต๋๋ค. ์ ๊ท ๊ณ ๊ฐ์๊ฒ๋ ์ํฌ๋ก๋๋ฅผ ์คํ, ํ ์คํธ, ๋ฐฐํฌํ๋ ๋ฐ ์ฌ์ฉํ ์ ์๋ $300์ ๋ฌด๋ฃ ํฌ๋ ๋ง์ด ์ ๊ณต๋ฉ๋๋ค.
Compute Engine ๋ฌด๋ฃ๋ก ์ฌ์ฉํด ๋ณด๊ธฐ