kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: nginx名称
spec:
  ingressClassName: nginx
  rules:
    - host: 域名
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: service名称
                port:
                  number: service端口