apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: statping-ingress
  namespace: stats
  annotations:
    traefik.ingress.kubernetes.io/router.tls: "true"
spec:
  ingressClassName: infrastructure-ingress
  tls:
  - hosts:
      - stats.fnptr.net
    secretName: stats-cert
  rules:
  - host: stats.fnptr.net
    http:
      paths:
      - path: /ping
        pathType: Prefix
        backend:
          service:
            name: statping
            port:
              number: 80