apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: hadoop namespace: data annotations: {} spec: rules: - host: hadoop.cestong.com.cn http: paths: - path: / pathType: Prefix backend: service: name: hadoop-hdfs-namenodes port: number: 9870 ingressClassName: nginx