apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: wp
  namespace: clase9
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: wordpress
            port:
              number: 80
