If you want to use a custom nginx.conf on Google Kubernetes Engine, prepare one by
extending this
sample nginx.conf.
Here is a snippet of the configuration required by Cloud Endpoints:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-21 UTC."],[[["\u003cp\u003eUsing a custom nginx configuration with the \u003ccode\u003e-n\u003c/code\u003e flag is generally not recommended as it can disrupt the intended functionality of ESP.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize a custom \u003ccode\u003enginx.conf\u003c/code\u003e on Google Kubernetes Engine, one should extend the provided sample configuration and include specific Cloud Endpoints configurations in it, such as including \u003ccode\u003e/etc/nginx/mime.types\u003c/code\u003e and utilizing the endpoints feature with relevant fields.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating a custom \u003ccode\u003enginx.conf\u003c/code\u003e, you can deploy it to Kubernetes by creating a ConfigMap and then updating your Kubernetes configuration to reference the custom nginx configuration.\u003c/p\u003e\n"]]],[],null,[]]