k8s 中 ingress相关配置
【代码】k8s 中 ingress相关配置。
·
- 设置包体大小 - 文件上传大小
- 设置https
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
field.cattle.io/publicEndpoints: '[{"addresses":[""],"port":80,"protocol":"HTTP","serviceName":"xxx-system:xxx-gateway-backend","ingressName":"xxx-system:xxx-gateway","hostname":"gateway.xxx.xxx.com","path":"/","allNodes":false}]'
nginx.ingress.kubernetes.io/proxy-body-size: 120M
creationTimestamp: "2021-03-22T11:05:46Z"
generation: 2
labels:
choerodon.io/release: xxx-gateway
name: xxx-gateway
namespace: xxx-system
resourceVersion: "82465100"
spec:
rules:
- host: gateway.xxx.xxx.com
http:
paths:
- backend:
serviceName: xxx-gateway-backend
servicePort: 8091
path: /
tls:
- hosts:
- xxx.xxx.com
- '*.xxx.xxx.com'
secretName: ingress-tls-xxx
status:
loadBalancer:
ingress:
- hostname: localhost
更多推荐
已为社区贡献17条内容
所有评论(0)