summaryrefslogtreecommitdiff
path: root/f3s/git-server/helm-chart/templates/service.yaml
blob: b866e7b011e999245213e8bf6a0f81c27ac18137 (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
apiVersion: v1
kind: Service
metadata:
  name: git-server
  namespace: cicd
  labels:
    app: git-server
spec:
  selector:
    app: git-server
  ports:
  - name: ssh
    protocol: TCP
    port: 22
    targetPort: 22
  - name: http
    protocol: TCP
    port: 80
    targetPort: 80
  type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
  name: git-server-ssh
  namespace: cicd
  labels:
    app: git-server
spec:
  selector:
    app: git-server
  ports:
  - name: ssh
    protocol: TCP
    port: 22
    targetPort: 22
    nodePort: 30022
  type: NodePort