-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
67 lines (64 loc) · 1.52 KB
/
deployment.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitlab-deployment
namespace: gitlab
labels:
app: gitlab
spec:
replicas: 1
selector:
matchLabels:
app: gitlab
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gitlab
annotations:
pod.beta.kubernetes.io/hostname: kube-gitlab.local
spec:
tolerations:
- key: "kube-app"
operator: "Equal"
value: "gitlab"
effect: "NoSchedule"
hostname: kube-gitlab
subdomain: local
containers:
- name: gitlab
image: gitlab/gitlab-ce:16.0.6-ce.0
env:
- name: external_url
value: "http://kube-gitlab.local"
ports:
- containerPort: 80
name: web
- containerPort: 22
name: ssh
volumeMounts:
- name: gitlab-config
mountPath: "/etc/gitlab"
- name: gitlab-data
mountPath: "/var/opt/gitlab"
- name: gitlab-logs
mountPath: "/var/log/gitlab"
resources:
limits:
cpu: 3000m
memory: 3900Mi
requests:
cpu: 300m
memory: 300Mi
volumes:
- name: gitlab-data
persistentVolumeClaim:
claimName: gitlab-data-claim
- name: gitlab-logs
persistentVolumeClaim:
claimName: gitlab-logs-claim
- name: gitlab-config
persistentVolumeClaim:
claimName: gitlab-config-claim