chore(gitlab): Remove Gitlab from current repository
This commit is contained in:
parent
19bae8cadd
commit
ef95edbbca
@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: gitlab-backup-pvc
|
|
||||||
namespace: gitlab
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
storageClassName: flat-storage-class
|
|
@ -1,72 +0,0 @@
|
|||||||
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
|
|
||||||
nodeName: slave-1
|
|
||||||
containers:
|
|
||||||
- name: gitlab
|
|
||||||
image: git.halia.dev/athens-school/gitlab:15.5.0-amd64
|
|
||||||
lifecycle:
|
|
||||||
postStart:
|
|
||||||
exec:
|
|
||||||
command: [
|
|
||||||
'/bin/sh',
|
|
||||||
'-c',
|
|
||||||
'cp /etc/gitlab/gitlab-secrets.reference /etc/gitlab/gitlab-secrets.json && cp /etc/gitlab/reference.rb /etc/gitlab/gitlab.rb && chmod 600 /etc/gitlab/gitlab.rb']
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: "/etc/gitlab/reference.rb"
|
|
||||||
name: gitlab-config-secret
|
|
||||||
subPath: reference.rb
|
|
||||||
- mountPath: "/etc/gitlab/gitlab-secrets.reference"
|
|
||||||
name: gitlab-secrets
|
|
||||||
subPath: gitlab-secrets.reference
|
|
||||||
- mountPath: "/var/opt/gitlab"
|
|
||||||
name: gitlab-pv
|
|
||||||
- name: gitlab-db
|
|
||||||
image: postgres:14-alpine3.15
|
|
||||||
env:
|
|
||||||
- name: POSTGRES_DB
|
|
||||||
value: "gitlabhq_production"
|
|
||||||
- name: POSTGRES_USER
|
|
||||||
value: "gitlab"
|
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
value: "aberation"
|
|
||||||
- name: POSTGRES_INITDB_ARGS
|
|
||||||
value: "--encoding=UTF-8 --locale=C"
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: "/var/lib/postgresql/data"
|
|
||||||
name: gitlab-db-pv
|
|
||||||
- mountPath: "/backups"
|
|
||||||
name: gitlab-backup
|
|
||||||
subPath: backups
|
|
||||||
volumes:
|
|
||||||
- name: gitlab-pv
|
|
||||||
hostPath:
|
|
||||||
path: "/mnt/gitlab/data"
|
|
||||||
- name: gitlab-config-secret
|
|
||||||
secret:
|
|
||||||
secretName: gitlab-config
|
|
||||||
- name: gitlab-secrets
|
|
||||||
secret:
|
|
||||||
secretName: gitlab-secrets
|
|
||||||
- name: gitlab-db-pv
|
|
||||||
hostPath:
|
|
||||||
path: "/mnt/gitlab/db"
|
|
||||||
- name: gitlab-backup
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: gitlab-backup-pvc
|
|
@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
data:
|
|
||||||
reference.rb: ZXh0ZXJuYWxfdXJsICdodHRwczovL2dpdC5iZXRhLmhhbGlhLmRldicKZ2l0bGFiX3JhaWxzWydnaXRsYWJfZGVmYXVsdF90aGVtZSddID0gMgpyZWdpc3RyeV9leHRlcm5hbF91cmwgJ2h0dHBzOi8vZ2l0LmJldGEuaGFsaWEuZGV2JwpwdW1hWyd3b3JrZXJfcHJvY2Vzc2VzJ10gPSAwCnNpZGVraXFbJ21heF9jb25jdXJyZW5jeSddID0gNQpuZ2lueFsnbGlzdGVuX3BvcnQnXSA9IDgwCm5naW54WydsaXN0ZW5fa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AuMC4wLjAnCnJlZGlzX2V4cG9ydGVyWydsaXN0ZW5fYWRkcmVzcyddID0gJzAuMC4wLjA6OTEyMScKcG9zdGdyZXNfZXhwb3J0ZXJbJ2xpc3Rlbl9hZGRyZXNzJ10gPSAnMC4wLjAuMDo5MTg3JwpnaXRhbHlbJ3Byb21ldGhldXNfbGlzdGVuX2FkZHInXSA9ICcwLjAuMC4wOjkyMzYnCmdpdGxhYl9yYWlsc1snbW9uaXRvcmluZ193aGl0ZWxpc3QnXSA9IFsnMC4wLjAuMCddCmdpdGxhYl9yYWlsc1sncHJvbWV0aGV1c19hZGRyZXNzJ10gPSAnMC4wLjAuMDo5MDkwJwpuZ2lueFsnc3RhdHVzJ11bJ29wdGlvbnMnXSA9IHsKICAic2VydmVyX3Rva2VucyIgPT4gIm9mZiIsCiAgImFjY2Vzc19sb2ciID0+ICJvZmYiLAogICJhbGxvdyIgPT4gIjAuMC4wLjAiLAogICJkZW55IiA9PiAiYWxsIiwKfQpwb3N0Z3Jlc3FsWydlbmFibGUnXSA9IGZhbHNlCmdpdGxhYl9yYWlsc1snZGJfYWRhcHRlciddID0gJ3Bvc3RncmVzcWwnCmdpdGxhYl9yYWlsc1snZGJfZW5jb2RpbmcnXSA9ICd1bmljb2RlJwpnaXRsYWJfcmFpbHNbJ2RiX2hvc3QnXSA9ICdsb2NhbGhvc3QnCmdpdGxhYl9yYWlsc1snZGJfcGFzc3dvcmQnXSA9ICdhYmVyYXRpb24nCmdpdGxhYl9yYWlsc1snbWFuYWdlX2JhY2t1cF9wYXRoJ10gPSB0cnVlCmdpdGxhYl9yYWlsc1snYmFja3VwX3BhdGgnXSA9ICIvYmFja3VwcyIK
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: gitlab-config
|
|
||||||
namespace: gitlab
|
|
@ -1,30 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: gitlab-ingress
|
|
||||||
namespace: gitlab
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: "traefik"
|
|
||||||
spec:
|
|
||||||
tls:
|
|
||||||
- secretName: git-beta-tls
|
|
||||||
hosts:
|
|
||||||
- git.beta.halia.dev
|
|
||||||
rules:
|
|
||||||
- host: git.beta.halia.dev
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: gitlab-svc
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
- path: /v2
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: gitlab-svc
|
|
||||||
port:
|
|
||||||
number: 5050
|
|
@ -1,4 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: gitlab
|
|
@ -1,49 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: gitlab-svc
|
|
||||||
namespace: gitlab
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 80
|
|
||||||
- name: registry
|
|
||||||
port: 5050
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 5050
|
|
||||||
- name: node
|
|
||||||
port: 9100
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9100
|
|
||||||
- name: gitlab-workhorse
|
|
||||||
port: 9229
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9229
|
|
||||||
- name: gitlab-exporter
|
|
||||||
port: 9168
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9168
|
|
||||||
- name: gitlab-sidekiq
|
|
||||||
port: 8082
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8082
|
|
||||||
- name: redis
|
|
||||||
port: 9121
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9121
|
|
||||||
- name: postgres
|
|
||||||
port: 9187
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9187
|
|
||||||
- name: gitaly
|
|
||||||
port: 9236
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9236
|
|
||||||
- name: nginx
|
|
||||||
port: 8060
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8060
|
|
||||||
selector:
|
|
||||||
app: gitlab
|
|
Loading…
Reference in New Issue
Block a user