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:
|
||||
path: /home/www/a.ioot.xyz
|
||||
type: Directory
|
||||
- name: nginxdefaultconf
|
||||
hostPath:
|
||||
path: /home/www/nginx.vh.default.conf
|
||||
containers:
|
||||
- name: aiootxyz
|
||||
image: nginx:alpine
|
||||
|
|
@ -29,6 +32,8 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: aiootxyz
|
||||
- mountPath: /etc/nginx/conf.d/default.conf
|
||||
name: nginxdefaultconf
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
|
@ -49,6 +54,9 @@ metadata:
|
|||
name: aiootxyz
|
||||
annotations:
|
||||
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:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
|
|
|
|||
Loading…
Reference in a new issue