# UDP traffic through nginx-ingress is configured in the nginx-ingress helmrelease.yaml
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: enemy-territory
  namespace: game-servers
  annotations:
    kubernetes.io/ingress.class: 'nginx'
    cert-manager.io/cluster-issuer: 'letsencrypt-prod'
spec:
  tls:
    - hosts:
        - et.raspbernetes.com
      secretName: et.raspbernetes.com-ingress-cert
  rules:
    - host: et.raspbernetes.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: enemy-territory
                port:
                  number: 27960
