12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- annotations:
- kubernetes.io/ingress.class: "nginx"
- nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
- nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
- nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
- nginx.ingress.kubernetes.io/proxy-body-size: "10m"
- nginx.ingress.kubernetes.io/ssl-redirect: "false"
- nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
- name: grpc-example
- namespace: prd
- spec:
- tls:
- - hosts:
- - example.wanpinghui.com
- secretName: ex-wph-secret
- rules:
- - host: example.wanpinghui.com
- http:
- paths:
- - path: /
- backend:
- serviceName: grpc-example
- servicePort: grpc
- # nginx ingress controller 1.8之前的版本使用
- # nginx.ingress.kubernetes.io/grpc-backend: "true"
- # qcloud类型ingress转发配置,不支持gRPC
- #apiVersion: extensions/v1beta1
- #kind: Ingress
- #metadata:
- # annotations:
- # kubernetes.io/ingress.class: qcloud
- # kubernetes.io/ingress.http-rules: '[{"path":"/","backend":{"serviceName":"grpc-example","servicePort":"50051"}}]'
- # kubernetes.io/ingress.https-rules: "null"
- # kubernetes.io/ingress.rule-mix: "false"
- # kubernetes.io/ingress.subnetId: subnet-bkmrev02
- # name: grpc-example
- # namespace: prd
- #spec:
- # rules:
- # - http:
- # paths:
- # - path: /
- # backend:
- # serviceName: grpc-example
- # servicePort: grpc
- #
- #status: {}
|