update document root to /var/www/html in nginx deployment template

This commit is contained in:
Lu Ken
2019-08-20 14:31:08 +08:00
committed by qzheng527
parent 38dc86acee
commit 2c0a0b70ae
2 changed files with 7 additions and 8 deletions
+3 -3
View File
@@ -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:
```
@@ -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