---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: sourcegraph-ingress
  namespace: sourcegraph
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: sourcegraph-nginx
    kubernetes.io/ingress.global-static-ip-name: sourcegraph-static-ip
spec:
  rules:
  - host: cs.corp.pixielabs.ai
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: sourcegraph-frontend
            port:
              name: http
  tls:
  - hosts:
    - cs.corp.pixielabs.ai
    secretName: cs.corp.pixielabs.ai-tls
