mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-09-02 01:15:27 +00:00
a.ioot.xyz: use nginx configuration from /home/www
This commit is contained in:
parent
153aa9af0e
commit
6cac230642
1 changed files with 8 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ spec:
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /home/www/a.ioot.xyz
|
path: /home/www/a.ioot.xyz
|
||||||
type: Directory
|
type: Directory
|
||||||
|
- name: nginxdefaultconf
|
||||||
|
hostPath:
|
||||||
|
path: /home/www/nginx.vh.default.conf
|
||||||
containers:
|
containers:
|
||||||
- name: aiootxyz
|
- name: aiootxyz
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
|
@ -29,6 +32,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/share/nginx/html
|
- mountPath: /usr/share/nginx/html
|
||||||
name: aiootxyz
|
name: aiootxyz
|
||||||
|
- mountPath: /etc/nginx/conf.d/default.conf
|
||||||
|
name: nginxdefaultconf
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
@ -49,6 +54,9 @@ metadata:
|
||||||
name: aiootxyz
|
name: aiootxyz
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
tls:
|
tls:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue