-
Notifications
You must be signed in to change notification settings - Fork 20
/
40-deployment.yml
62 lines (62 loc) · 1.65 KB
/
40-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: gitlab
name: gitlab
labels:
app: gitlab
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: gitlab
template:
metadata:
labels:
app: gitlab
spec:
containers:
- name: gitlab
image: gitlab/gitlab-ce:11.10.4-ce.0
imagePullPolicy: IfNotPresent
volumeMounts:
- name: config-volume
mountPath: /etc/gitlab
- name: logs-volume
mountPath: /var/log/gitlab
- name: data-volume
mountPath: /var/opt/gitlab
- name: reg-volume
mountPath: /var/opt/gitlab/gitlab-rails/shared/registry
- name: uploads-volume
mountPath: /var/opt/gitlab/gitlab-rails/uploads
- name: gitlab-configmap-volume
mountPath: /etc/gitlab/gitlab.rb
subPath: gitlab.rb
ports:
- name: http-web
containerPort: 80
- name: tcp-ssh
containerPort: 22
- name: http-reg
containerPort: 5050
volumes:
- name: gitlab-configmap-volume
configMap:
name: gitlab-config
- name: config-volume
hostPath:
path: /srv/gitlab/config
- name: logs-volume
hostPath:
path: /srv/gitlab/logs
- name: data-volume
hostPath:
path: /srv/gitlab/data
- name: reg-volume
hostPath:
path: /srv/gitlab/reg
- name: uploads-volume
hostPath:
path: /srv/gitlab/uploads