K3s-cluster/gitlab/deployment.yaml
Tanguy Herbron 5f870e9ca0 feat(gitlab): Add basic Gitlab configuration
Contains basic deployment and networking requirement, awaiting custom configuration and proper volume management.
2022-10-17 00:35:03 +02:00

34 lines
882 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gitlab
namespace: gitlab
spec:
replicas: 1
selector:
matchLabels:
app: gitlab
template:
metadata:
labels:
app: gitlab
spec:
hostname: gitlab
subdomain: gitlab
containers:
- name: gitlab
image: gitlab/gitlab-ce:15.4.2-ce.0
ports:
- containerPort: 80
volumeMounts:
- mountPath: "/etc/gitlab/gitlab.rb"
name: gitlab-config-volume
subPath: gitlab.rb
volumes:
- name: gitlab-pv
hostPath:
path: "/mnt/gitlab"
- name: gitlab-config-volume
configMap:
name: gitlab-config