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:
Now create a Kubernetes Configmap with your custom nginx.conf
using kubectl
:
kubectl create configmap nginx-config --from-file=nginx.conf
Edit the Kubernetes configuration file such as
esp_echo_custom_config_gke.yaml
and replace SERVICE_NAME
with the name of your Endpoints service.
Finally, start the service with the updated Kubernetes configuration file using
kubectl
.
kubectl create -f esp_echo_custom_config_gke.yaml