apiVersion: v1 kind: Namespace metadata: name: gitlab --- apiVersion: apps/v1 kind: Deployment metadata: name: gitlab namespace: gitlab spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: gitlab template: metadata: labels: app: gitlab spec: nodeName: prod102 containers: - name: gitlab image: docker.m.daocloud.io/gitlab/gitlab-ce:19.4.2-ce.0 imagePullPolicy: IfNotPresent env: - name: GITLAB_OMNIBUS_CONFIG value: | external_url 'http://10.0.1.47:8929' nginx['listen_port'] = 8929 nginx['listen_https'] = false letsencrypt['enable'] = false gitlab_rails['gitlab_shell_ssh_port'] = 2224 gitlab_sshd['enable'] = false gitlab_rails['initial_root_password'] = 'R3po-Argo-2026' prometheus_monitoring['enable'] = false puma['worker_processes'] = 2 sidekiq['max_concurrency'] = 10 postgresql['shared_buffers'] = '256MB' ports: - name: http containerPort: 8929 hostPort: 8929 startupProbe: httpGet: path: /users/sign_in port: http periodSeconds: 15 timeoutSeconds: 10 failureThreshold: 40 readinessProbe: httpGet: path: /users/sign_in port: http periodSeconds: 15 timeoutSeconds: 10 failureThreshold: 3 livenessProbe: httpGet: path: /users/sign_in port: http periodSeconds: 30 timeoutSeconds: 10 failureThreshold: 6 resources: requests: cpu: "1" memory: 4Gi limits: memory: 8Gi volumeMounts: - name: data mountPath: /var/opt/gitlab - name: logs mountPath: /var/log/gitlab - name: config mountPath: /etc/gitlab - name: shm mountPath: /dev/shm volumes: - name: data hostPath: path: /usr/cluster/gitlab/data type: DirectoryOrCreate - name: logs hostPath: path: /usr/cluster/gitlab/logs type: DirectoryOrCreate - name: config hostPath: path: /usr/cluster/gitlab/config type: DirectoryOrCreate - name: shm emptyDir: medium: Memory sizeLimit: 512Mi --- apiVersion: v1 kind: Service metadata: name: gitlab namespace: gitlab spec: selector: app: gitlab ports: - name: http port: 8929 targetPort: http