K3s-cluster/gitlab/deployment.yaml

34 lines
882 B
YAML
Raw Normal View History

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