py-ingress.yaml 738 B

1234567891011121314151617181920212223242526
  1. apiVersion: extensions/v1beta1
  2. kind: Ingress
  3. metadata:
  4. annotations:
  5. kubernetes.io/ingress.class: "nginx"
  6. nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
  7. nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
  8. nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
  9. nginx.ingress.kubernetes.io/proxy-body-size: "10m"
  10. nginx.ingress.kubernetes.io/ssl-redirect: "false"
  11. nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
  12. name: py-grpc-example
  13. namespace: prd
  14. spec:
  15. tls:
  16. - hosts:
  17. - gw.wanpinghui.com
  18. secretName: gw-wph-secret
  19. rules:
  20. - host: gw.wanpinghui.com
  21. http:
  22. paths:
  23. - path: /
  24. backend:
  25. serviceName: py-grpc-example
  26. servicePort: grpc-greet