-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitlab-ce-deploy.yaml
40 lines (39 loc) · 1018 Bytes
/
gitlab-ce-deploy.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gitlab-ce
spec:
replicas: 1
template:
metadata:
labels:
name: gitlab-ce
spec:
containers:
- name: gitlab-ce
image: gitlab/gitlab-ce:11.1.4-ce.0
ports:
- containerPort: 22
- containerPort: 80
- containerPort: 443
- containerPort: 5000
- containerPort: 5050
- containerPort: 8080
- containerPort: 32180
volumeMounts:
- name: gitlab-conf
mountPath: /etc/gitlab
- name: gitlab-data
mountPath: /var/opt/gitlab
- name: gitlab-logs
mountPath: /var/log/gitlab
volumes:
- name: gitlab-conf
hostPath:
path: /Volumes/CODE/k8s/gitlab-ce/conf
- name: gitlab-data
hostPath:
path: /Volumes/CODE/k8s/gitlab-ce/data
- name: gitlab-logs
hostPath:
path: /Volumes/CODE/k8s/gitlab-ce/logs