From 2c0a0b70ae0090261a428d061ba895632bf49e85 Mon Sep 17 00:00:00 2001 From: Lu Ken Date: Sun, 11 Aug 2019 12:22:49 +0800 Subject: [PATCH] update document root to /var/www/html in nginx deployment template --- nginx/README.md | 6 +++--- nginx/nginx-service-deployment-customize-conf.yaml | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nginx/README.md b/nginx/README.md index dab766d..c8ac42d 100644 --- a/nginx/README.md +++ b/nginx/README.md @@ -29,9 +29,9 @@ This container could be deployed on any kubernetes compatible cloud native clust Following template files as kubernete YAML registries for operator's reference: -* nginx-service-deployment-simple.yaml: use default configurations to create nginx service on kubernetes cluster -* nginx-service-deployment-customize-conf.yaml: demostrate how to use customized config file to replace default one. -* nginx-service-deployment-persistent-volume.yaml: demostrate how to manage web server materials on persistent storage. +* [nginx-service-deployment-simple.yaml](nginx-service-deployment-simple.yaml): use default configurations to create nginx service on kubernetes cluster +* [nginx-service-deployment-customize-conf.yaml](nginx-service-deployment-customize-conf.yaml): demostrate how to use customized config file to replace default one. +* [nginx-service-deployment-persistent-volume.yaml](nginx-service-deployment-persistent-volume.yaml): demostrate how to manage web server materials on persistent storage. Quick deployment for test: ``` diff --git a/nginx/nginx-service-deployment-customize-conf.yaml b/nginx/nginx-service-deployment-customize-conf.yaml index 8b9047a..98ecabf 100644 --- a/nginx/nginx-service-deployment-customize-conf.yaml +++ b/nginx/nginx-service-deployment-customize-conf.yaml @@ -12,10 +12,10 @@ data: http { access_log /var/log/nginx/access.log combined; server { - root /usr/share/nginx/html; - location / { - autoindex on; - } + root /var/www/html; + location / { + autoindex on; + } } } --- @@ -48,7 +48,6 @@ spec: items: - key: nginx.conf path: nginx.conf - --- apiVersion: v1 kind: Service