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-root-password - 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