Commit 93e3c576 by wangtingwei

autodl seetaas ingress规则增加解决414修复annation

1 parent c33cbd53
...@@ -3,6 +3,11 @@ kind: Ingress ...@@ -3,6 +3,11 @@ kind: Ingress
metadata: metadata:
name: autodl-ingress name: autodl-ingress
namespace: autodl namespace: autodl
######################添加annotation修改nginx配置信息,解决上传文件413 too large限制################
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: "102400m"
#####################################################################################################
spec: spec:
tls: tls:
- hosts: - hosts:
...@@ -22,7 +27,7 @@ spec: ...@@ -22,7 +27,7 @@ spec:
paths: paths:
- backend: - backend:
serviceName: autodl--frontend serviceName: autodl--frontend
servicePort: 30090 servicePort: 80 #port
- host: api-test.autodl.com - host: api-test.autodl.com
http: http:
paths: paths:
...@@ -40,7 +45,7 @@ spec: ...@@ -40,7 +45,7 @@ spec:
paths: paths:
- backend: - backend:
serviceName: autodl--admin-frontend serviceName: autodl--admin-frontend
servicePort: 80 servicePort: 80 #port
- host: admin-backend-test.autodl.com - host: admin-backend-test.autodl.com
http: http:
paths: paths:
......
...@@ -7,7 +7,7 @@ metadata: ...@@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/name: ingress-nginx app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx app.kubernetes.io/part-of: ingress-nginx
spec: spec:
replicas: 1 replicas: 3
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: ingress-nginx app.kubernetes.io/name: ingress-nginx
......
...@@ -3,6 +3,11 @@ kind: Ingress ...@@ -3,6 +3,11 @@ kind: Ingress
metadata: metadata:
name: seetaas-ingress name: seetaas-ingress
namespace: seetaas namespace: seetaas
######################添加annotation修改nginx配置信息,解决上传文件413 too large限制################
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: "102400m"
###########################################################################
spec: spec:
tls: tls:
- hosts: - hosts:
...@@ -64,3 +69,4 @@ spec: ...@@ -64,3 +69,4 @@ spec:
- backend: - backend:
serviceName: seetaas--frontend serviceName: seetaas--frontend
servicePort: 81 servicePort: 81
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!