apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-wordpress
  #namespace: wordpress
  #annotations:
  #  kubernetes.io/ingress.class: "nginx" ,k8s-v1.32.0不支持
spec:
  ingressClassName: nginx   #新版建议使用此项指定controller类型
  rules:
  - host: www.wang.org
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: wordpress
            port: 
              number: 80
