summaryrefslogtreecommitdiff
path: root/f3s/forgejo/helm-chart/templates/ingress.yaml
blob: 491609863ca50b75ac96a5b79b0c077166084c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Forgejo web UI ingress.
#
# code.f3s.buetow.org must also be listed in @f3s_hosts in frontends/Rexfile --
# that array drives the DNS zone, the relayd routing rule and the ACME cert.
# Adding it here alone is not enough to make the name resolve or serve TLS.
#
# cgit stays where it is, at c-git.f3s.buetow.org; the two are unrelated.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: forgejo-ingress
  namespace: services
  annotations:
    spec.ingressClassName: traefik
    traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
  rules:
    - host: code.f3s.buetow.org
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: forgejo
                port:
                  number: 80
---
# LAN ingress. *.f3s.lan resolves to the storage VIP via Pi-hole, and Traefik
# terminates TLS here with the shared f3s-lan-tls cert.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: forgejo-ingress-lan
  namespace: services
  annotations:
    spec.ingressClassName: traefik
    traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
spec:
  tls:
    - hosts:
        - code.f3s.lan.buetow.org
      secretName: f3s-lan-tls
  rules:
    - host: code.f3s.lan.buetow.org
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: forgejo
                port:
                  number: 80