summaryrefslogtreecommitdiff
path: root/f3s/forgejo/helm-chart/templates/service.yaml
blob: 7c3bfe779e302802a847e4068e86ef54a0cdd7aa (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
apiVersion: v1
kind: Service
metadata:
  name: forgejo
  namespace: services
  labels:
    app: forgejo
spec:
  selector:
    app: forgejo
  ports:
  - name: http
    protocol: TCP
    port: 80
    targetPort: 3000
  type: ClusterIP
---
# SSH for git clone/push. NodePort 30222 -- git-server/cgit already owns 30022,
# and the two installs are intentionally independent.
apiVersion: v1
kind: Service
metadata:
  name: forgejo-ssh
  namespace: services
  labels:
    app: forgejo
spec:
  selector:
    app: forgejo
  ports:
  - name: ssh
    protocol: TCP
    port: 2222
    targetPort: 2222
    nodePort: 30222
  type: NodePort