-
Notifications
You must be signed in to change notification settings - Fork 1
/
4-gitlab-app.yaml
99 lines (98 loc) · 2.13 KB
/
4-gitlab-app.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: web
namespace: gitlab
labels:
app: gitlab
spec:
selector:
matchLabels:
app: gitlab-web
serviceName: gitlab
replicas: 1
volumeClaimTemplates:
- metadata:
name: data
namespace: gitlab
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi
selector:
matchLabels:
volume-name: gitlab-data
template:
metadata:
labels:
app: gitlab-web
spec:
nodeSelector:
gitlab: "true"
containers:
- name: gitlab
image: sameersbn/gitlab:11.11.3
imagePullPolicy: Always
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 30
periodSeconds: 10
envFrom:
- configMapRef:
name: web
- configMapRef:
name: postgres
- secretRef:
name: web
- secretRef:
name: postgres
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 22
name: ssh
protocol: TCP
resources:
limits:
cpu: "1000m"
memory: "4Gi"
requests:
cpu: "250m"
memory: "500Mi"
volumeMounts:
- name: data
mountPath: /home/git/data
- name: registry-certs
mountPath: /certs/registry
readOnly: true
volumes:
- name: registry-certs
secret:
secretName: tls-gitlab
---
# -- Service for the Ingress to target
apiVersion: v1
kind: Service
metadata:
name: web
namespace: gitlab
labels:
app: gitlab
spec:
selector:
app: gitlab-web
ports:
- name: http
port: 80
targetPort: 80
- name: ssh
port: 10022
targetPort: 22