---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: traefik
    external-dns.alpha.kubernetes.io/target: "${SECRET_DOMAIN_TARGET_SKY}"
    external-dns/is-public: "true"
    traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
    hajimari.io/enable: "true"
    hajimari.io/icon: "podcast"
    hajimari.io/appName: "podsync"
  labels:
    app: podsync
  name: podsync
spec:
  rules:
    - host: podsync.${SECRET_DOMAIN_ME}
      http:
        paths:
          - backend:
              service:
                name: podsync
                port:
                  number: 8080
            path: /
            pathType: Prefix
  tls:
    - hosts:
        - podsync.${SECRET_DOMAIN_ME}
      secretName: "${SECRET_DOMAIN_ME/./-}-tls"
