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-04-02 (UTC)"],[[["Using a custom nginx configuration with the `-n` flag is generally not recommended as it can disrupt the intended functionality of ESP."],["The preferred method to customize the nginx configuration involves deploying an ESP container, copying the generated config, and modifying the copy, repeating this process for new ESP versions or flag changes."],["To utilize a custom `nginx.conf` on Google Kubernetes Engine, one should extend the provided sample configuration and include specific Cloud Endpoints configurations in it, such as including `/etc/nginx/mime.types` and utilizing the endpoints feature with relevant fields."],["After creating a custom `nginx.conf`, you can deploy it to Kubernetes by creating a ConfigMap and then updating your Kubernetes configuration to reference the custom nginx configuration."]]],[]]