Si deseas usar un nginx.conf personalizado en Google Kubernetes Engine, prepara uno mediante la extensión de este nginx.conf de ejemplo. A continuación, se muestra un fragmento de la configuración que requiere Cloud Endpoints:
Edita el archivo de configuración de Kubernetes como esp_echo_custom_config_gke.yaml y reemplaza SERVICE_NAME por el nombre de tu servicio de Endpoints.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-03-25 (UTC)"],[[["Using the `-n` flag to provide a custom nginx configuration is generally not recommended, as it can lead to feature breakage; instead, the preferred method is to modify a copy of the automatically generated configuration."],["To customize the nginx configuration, deploy an ESP container, copy the generated `nginx.conf` from `/etc/nginx/endpoints/`, and make your changes to the copied file."],["When using a custom `nginx.conf` on Google Kubernetes Engine, you should use the provided sample configuration as a base and ensure that it contains the required settings for Cloud Endpoints."],["The nginx configuration must include specific directives like `endpoints { on; }` and after ESP version 1.7.0, the `server_config` field should be set to `/etc/nginx/server_config.pb.txt` for proper functionality."],["After creating a custom `nginx.conf`, it needs to be deployed into Kubernetes via a ConfigMap and referenced within the Kubernetes configuration file, ensuring that the ESP container's arguments point to the custom configuration location."]]],[]]