1๋‹จ๊ณ„: API ์‚ฌ์šฉ ์„ค์ •

Apigee Hybrid๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ํŠน์ • Google Cloud ์„œ๋น„์Šค API๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋‹จ๊ณ„์—์„œ๋Š” ์„ค์น˜ ํ”Œ๋žซํผ์— ํ•„์š”ํ•œ API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

gcloud๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์Œ ๋‹จ๊ณ„์— ์„ค๋ช…๋œ ๋Œ€๋กœ ํ•„์š”ํ•œ API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์›ํ•˜๋Š” ๊ฒฝ์šฐ Google Cloud ์ฝ˜์†”์„ ์‚ฌ์šฉํ•˜์—ฌ API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  1. ๊ธฐ๋ณธ ์š”๊ฑด์„ ์™„๋ฃŒํ•˜๊ณ  ๋กœ์ปฌ ์…ธ์— gcloud CLI๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
    gcloud --help
  2. PROJECT_ID ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ ๊ฐ’์€ Apigee Hybrid์— ์‚ฌ์šฉํ•  Google Cloud ํ”„๋กœ์ ํŠธ์˜ ID์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ ID๋Š” Google Cloud์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋‹ค๋ฅธ ๋ชจ๋“  ํ”„๋กœ์ ํŠธ์™€ ๊ตฌ๋ถ„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ๊ณ ์œ ํ•œ ๋ฌธ์ž์—ด์ž…๋‹ˆ๋‹ค. ํ•„์š”ํ•œ ๊ฒฝ์šฐ ํ”„๋กœ์ ํŠธ ID ์ฐพ๊ธฐ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.
    export PROJECT_ID=YOUR_PROJECT_ID
  3. API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•˜๊ธฐ ์œ„ํ•œ ๋ช…๋ น์–ด๋ฅผ ๋ณด๋ ค๋ฉด ์›ํ•˜๋Š” ์„ค์น˜์˜ ํƒญ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

    Google Cloud ๊ธฐ๋ฐ˜ GKE

    Google Kubernetes Engine(GKE)์—์„œ ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ์‹คํ–‰ํ•  ๊ฒฝ์šฐ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ํ•„์š”ํ•œ API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

    Google Cloud ์ฝ˜์†”

    Enable the Apigee, Apigee Connect, Cloud Pub/Sub, Cloud Resource Manager, Kubernetes Engine, Compute Engine APIs.

    Enable the APIs

    gcloud

    gcloud services enable \
        apigee.googleapis.com \
        apigeeconnect.googleapis.com \
        cloudresourcemanager.googleapis.com \
        compute.googleapis.com \
        container.googleapis.com \
        pubsub.googleapis.com --project $PROJECT_ID
    

    ๊ธฐํƒ€ ํ”Œ๋žซํผ

    ๋‹ค์Œ ํ”Œ๋žซํผ ์ค‘ ํ•˜๋‚˜์—์„œ ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ์‹คํ–‰ํ•  ๊ฒฝ์šฐ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ํ•„์š”ํ•œ API๋ฅผ ์‚ฌ์šฉ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

    • AKS
    • EKS
    • GKE on AWS
    • OpenShift
    • ์†Œํ”„ํŠธ์›จ์–ด ์ „์šฉ VMware ๋˜๋Š” ๋ฒ ์–ด๋ฉ”ํƒˆ์šฉ Google Distributed Cloud

    Google Cloud ์ฝ˜์†”

    Enable the Apigee, Apigee Connect, Cloud Monitoring, Cloud Pub/Sub, Cloud Resource Manager APIs.

    Enable the APIs

    gcloud

    gcloud services enable \
        apigee.googleapis.com \
        apigeeconnect.googleapis.com \
        cloudresourcemanager.googleapis.com \
        monitoring.googleapis.com \
        pubsub.googleapis.com  --project $PROJECT_ID
  4. (์„ ํƒ์‚ฌํ•ญ) ํ•„์š”ํ•œ API๊ฐ€ ์‚ฌ์šฉ ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. ํ•„์ˆ˜ API๊ฐ€ ๋ฐ˜ํ™˜๋œ ๋ชฉ๋ก์— ์žˆ์œผ๋ฉด ์‚ฌ์šฉ ์„ค์ •๋œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    gcloud services list --project $PROJECT_ID

๋‹ค์Œ ๋‹จ๊ณ„

2๋‹จ๊ณ„: ์กฐ์ง ๋งŒ๋“ค๊ธฐ๋กœ ์ด๋™ํ•˜๊ธฐ