apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gsi
  annotations:
    kubernetes.io/ingress.class: "nginx"
    kubernetes.io/tls-acme: "true"
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
  rules:
    - host: prestrafe.com
      http:
        paths:
          - path: /twitchbot(/|$)(.*)
            pathType: Prefix
            backend:
              service:
                name: prestrafe-gsi
                port:
                  name: http-gsi
  tls:
    - secretName: tls-prestrafe-secret
      hosts:
        - prestrafe.com

