apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: api-ingress
  namespace: container-mom-system
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - "api.container.mom"
    secretName: api-tls
  rules:
  - host: "api.container.mom"
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: container-mom-operator
            port:
              number: 8081 