add gitlab
This commit is contained in:
1 parent
31181baf0f
commit
d48e491be9
7 files changed
+115
No files matched your search
@@ -0,0 +1,43 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gitlab-deployment
|
||||
labels:
|
||||
app: gitlab
|
||||
spec:
|
||||
replicas: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gitlab
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: gitlab
|
||||
spec:
|
||||
containers:
|
||||
- name: gitlab
|
||||
image: gitlab/gitlab-ce:18.11.2-ce.0
|
||||
ports:
|
||||
- containerPort: 80
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: gitlab-secret
|
||||
- configMapRef:
|
||||
name: gitlab-configmap
|
||||
volumeMounts:
|
||||
- name: gitlab-volume-config
|
||||
mountPath: /etc/gitlab
|
||||
- name: gitlab-volume-logs
|
||||
mountPath: /var/log/gitlab
|
||||
- name: gitlab-volume-data
|
||||
mountPath: /var/opt/gitlab
|
||||
volumes:
|
||||
- name: gitlab-volume-config
|
||||
hostPath:
|
||||
path: /root/kubernetes/gitlab/data/config
|
||||
- name: gitlab-volume-logs
|
||||
hostPath:
|
||||
path: /root/kubernetes/gitlab/data/logs
|
||||
- name: gitlab-volume-data
|
||||
hostPath:
|
||||
path: /root/kubernetes/gitlab/data/data
|
||||
Reference in new issue
Block a user