Google Cloud 프로젝트 구성

GKE On-Prem을 설치하려면 Google Cloud 프로젝트가 있어야 합니다. 이 페이지에서는 Google Cloud 프로젝트를 구성하는 방법을 보여줍니다.

로그인

계정 사용자 인증 정보를 사용하여 Google Cloud에 로그인합니다.

gcloud auth login

기본 프로젝트 ID 설정

기본 프로젝트 ID를 설정합니다.

gcloud config set project [PROJECT_ID]

[PROJECT_ID]는 프로젝트 ID입니다.

이제 기본 프로젝트 ID가 있으므로 gcloud 명령어에 --project 플래그를 포함할 필요가 없습니다.

프로젝트에 필요한 API 사용 설정

Google Cloud 프로젝트에서 필요한 API를 사용 설정합니다.

Linux 및 macOS

gcloud services enable \
    anthos.googleapis.com \
    anthosgke.googleapis.com \
    anthosaudit.googleapis.com \
    cloudresourcemanager.googleapis.com \
    container.googleapis.com \
    gkeconnect.googleapis.com \
    gkehub.googleapis.com \
    serviceusage.googleapis.com \
    stackdriver.googleapis.com \
    monitoring.googleapis.com \
    logging.googleapis.com

Windows

gcloud services enable ^
    anthos.googleapis.com ^
    anthosgke.googleapis.com ^
    anthosaudit.googleapis.com ^
    cloudresourcemanager.googleapis.com ^
    container.googleapis.com ^
    gkeconnect.googleapis.com ^
    gkehub.googleapis.com ^
    serviceusage.googleapis.com ^
    stackdriver.googleapis.com ^
    monitoring.googleapis.com ^
    logging.googleapis.com

anthos.googleapis.com을 사용 설정하면 요금이 부과될 수 있습니다. 자세한 내용은 가격 책정 가이드를 참조하세요.

Cloud Monitoring 구성

Cloud Monitoring은 GKE On-Prem에 기본적으로 사용 설정됩니다.