Go 1.11은 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 Go 1.11 애플리케이션을 배포할 수 없습니다. 기존 Go 1.11 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 Go 버전으로 마이그레이션하는 것이 좋습니다.
런타임 설정 정의
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
App Engine의 Go 1.11 앱은 런타임, 핸들러, 확장, 환경 변수를 비롯한 기타 일반 설정이 포함된 app.yaml
파일을 통해 구성됩니다.
app.yaml
파일 정보
버전과 URL이 포함된 Go 1.11 앱의 런타임 구성을
app.yaml
파일에 지정할 수 있습니다. 이 파일은 특정
서비스 버전의 배포 설명자 역할을 합니다.
추가 서비스를 위해 app.yaml
파일을 만들고 배포하려면 먼저 default
서비스의 app.yaml
파일을 만들어야 합니다.
일반적으로 표준 환경에 있는 간단한 Go 1.11 앱의 경우 app.yaml
파일에는 runtime
요소만 필요합니다. 예를 들면 다음과 같습니다.
runtime: go111
앱에서 여러 서비스와
app.yaml
파일을 구조화하는 방법에 대한 자세한 내용은
웹 서비스 구조화를 참조하세요.
App Engine은 앱에서 사용할 수 있는 메모리와 CPU 리소스를 결정하는 F1 인스턴스 클래스와 새로운 앱 인스턴스가 생성되는 방법과 시기를 제어하는 자동 확장을 비롯한 다른 모든 설정의 기본값을 제공합니다.
기본 설정을 재정의해야 하는 경우 app.yaml
파일을 만들고 필요한 설정을 지정합니다. 자세한 내용은 app.yaml
파일 참조를 확인하세요.
app.yaml
파일에 고유한 이름을 지정할 수 있습니다. 하지만 이렇게 하면 배포 명령어에도 파일 이름을 지정해야 합니다. 예를 들어 app.yaml
파일의 이름을 service-name-app.yaml
이나 app.standard.yaml
로 지정한 후 다음 중 하나를 사용하여 앱을 배포해야 합니다.
gcloud app deploy service-name-app.yaml
gcloud app deploy app.standard.yaml
모든 구성 요소
이 구성 파일에서 지원되는 모든 요소의 전체 목록은 app.yaml
참조를 확인하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-04(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eA Go 1.11 app in App Engine uses an \u003ccode\u003eapp.yaml\u003c/code\u003e file to configure its runtime, handlers, scaling, environment variables, and other settings.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eapp.yaml\u003c/code\u003e file is essential for deploying a specific service version and must be created for the default service before adding others.\u003c/p\u003e\n"],["\u003cp\u003eA simple Go 1.11 app generally only needs the \u003ccode\u003eruntime\u003c/code\u003e element specified in its \u003ccode\u003eapp.yaml\u003c/code\u003e file, with other settings defaulting to App Engine's configurations.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize the default settings of your app by creating an \u003ccode\u003eapp.yaml\u003c/code\u003e file and overriding the desired settings.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003eapp.yaml\u003c/code\u003e can be named uniquely, doing so requires you to specify the file's name in the deployment command.\u003c/p\u003e\n"]]],[],null,["# Defining Runtime Settings\n\nA Go 1.11 app in App Engine is configured using an `app.yaml`\nfile, that contains the runtime, handlers, scaling, and other general settings\nincluding environment variables.\n\nAbout `app.yaml` files\n----------------------\n\n\u003cbr /\u003e\n\nYou can specify the runtime configuration for your Go 1.11 app, including versions and URLs, in the `app.yaml` file. This file acts as a deployment descriptor of a specific [service](/appengine/docs/legacy/standard/go111/an-overview-of-app-engine) version.\n\nYou must first create the `app.yaml` file for the `default` service of your app\nbefore you can create and deploy `app.yaml` files for additional services.\n\n\nGenerally, your `app.yaml` file requires only the `runtime` element for a simple\nGo 1.11 app in the standard environment, for\nexample: \n\n runtime: go111\n\nTo learn more about structuring multiple services and `app.yaml` files in your app, see [Structuring Web Services](/appengine/docs/legacy/standard/go111/configuration-files).\n\nApp Engine provides default values for all other settings, including\nthe [F1 instance class](/appengine/docs/standard#instance_classes), which\ndetermines the memory and CPU resources that are available to your app, and\n[automatic scaling](/appengine/docs/legacy/standard/go111/how-instances-are-managed#scaling_types),\nwhich controls how and when new instances of your app are created.\n\nIf you need to override the default settings, create an `app.yaml` file and\nspecify the settings you need. For more information, see\n[`app.yaml` file reference](/appengine/docs/legacy/standard/go111/config/appref).\n\n\nYou can specify a unique name for your `app.yaml` files, but then you must\nspecify the file name with the [deployment\ncommand](/appengine/docs/legacy/standard/go111/testing-and-deploying-your-app)\nas well. For example, if you name your `app.yaml` file `service-name-app.yaml`\nor `app.standard.yaml`, then you must deploy your app using either: \n\n gcloud app deploy service-name-app.yaml\n gcloud app deploy app.standard.yaml\n\n\u003cbr /\u003e\n\nAll configuration elements\n--------------------------\n\n\nFor a complete list of all the supported elements in this configuration file,\nsee the\n[`app.yaml` reference](/appengine/docs/legacy/standard/go111/config/appref)."]]