apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: "nginx"
    cert-manager.io/issuer: "letsencrypt-prod"
  name: portfolio-public
spec:
  tls:
    - hosts:
        - "portfolio.{{ .Values.ingress.hostname }}"
      secretName: portfolio-public-tls
  rules:
    - host: "portfolio.{{ .Values.ingress.hostname }}"
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: portfolio
                port:
                  number: 3001
