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"
  selfLink: /apis/extensions/v1beta1/namespaces/xxx-system/ingresses/xxx-gateway
  uid: 8dab630e-8afe-11eb-8144-fa163e0a1bb5
spec:
  rules:
  - host: gateway.xxx.xxx.com
    http:
      paths:
      - backend:
          serviceName: xxx-gateway-backend
          servicePort: 8091
        path: /
  tls:
  - hosts:
    - xxx.crcloud.com
    - '*.xxx.xxx.com'
    secretName: ingress-tls-xxx
status:
  loadBalancer:
    ingress:
    - hostname: localhost

你可能感兴趣的:(K8S,k8s)