apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    # Reference the Origin CA Issuer you created above, which must be in the same namespace.
    kubernetes.io/ingress.class: nginx
    cert-manager.io/issuer: prod-issuer
    cert-manager.io/issuer-kind: OriginIssuer
    cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com
  name: ingress-service
  namespace: ghost
spec:
  rules:
    - host: sudhanva.me
      http:
        paths:
          - path: /
            backend:
              service:
                name: sudhanva-v1-ghost
                port:
                  number: 443
            pathType: Prefix
  tls:
    - hosts:
        - sudhanva.me
      secretName: sudhanva-me-tls
