apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress
  namespace: mineco-qa
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: "true"
    cert-manager.io/cluster-issuer: letsencrypt-staging
    acme.cert-manager.io/http01-edit-in-place: "true"
    cert-manager.io/issue-temporary-certificate: "true"
spec:
  tls:
    - hosts:
      - qasic.mineco.gob.gt
      - qadti.mineco.gob.gt
      - qajuridico.mineco.gob.gt
      - qavehiculos.mineco.gob.gt
      - qapartidas.mineco.gob.gt
      secretName: default-server-secret-qa
  rules:
  - host: qasic.mineco.gob.gt
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: sic-qa
            port:
              number: 80
  - host: qadti.mineco.gob.gt
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: dti-qa
            port:
              number: 80
  - host: qajuridico.mineco.gob.gt
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: juridicos-qa
            port:
              number: 80
  - host: qavehiculos.mineco.gob.gt
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: vehiculos-qa
            port:
              number: 80
  - host: qapartidas.mineco.gob.gt
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: presupuesto-qa
            port:
              number: 80