ingress.yaml 366 B

12345678910111213141516171819
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4. name: hadoop
  5. namespace: data
  6. annotations: {}
  7. spec:
  8. rules:
  9. - host: hadoop.cestong.com.cn
  10. http:
  11. paths:
  12. - path: /
  13. pathType: Prefix
  14. backend:
  15. service:
  16. name: hadoop-hdfs-namenodes
  17. port:
  18. number: 9870
  19. ingressClassName: nginx