mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-10-03 23:38:31 +00:00
update document root to /var/www/html in nginx deployment template
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user