ingress.yaml 533 B

123456789101112131415161718192021222324
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4. name: df-app
  5. namespace: deepflow
  6. annotations:
  7. nginx.ingress.kubernetes.io/cors-allow-origin: '*'
  8. nginx.ingress.kubernetes.io/enable-cors: "true"
  9. spec:
  10. tls:
  11. rules:
  12. - host: app.cestong.com.cn
  13. http:
  14. paths:
  15. - path: /
  16. pathType: Prefix
  17. backend:
  18. service:
  19. name: deepflow-app
  20. port:
  21. number: 20418
  22. ingressClassName: nginx