From ef95edbbca0869041d359a3fe116fadd4dcf1c57 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 14 Nov 2023 00:25:36 +0100 Subject: [PATCH] chore(gitlab): Remove Gitlab from current repository --- gitlab/backup-pvc.yaml | 12 ------ gitlab/deployment.yaml | 72 -------------------------------- gitlab/gitlab-secret-config.yaml | 8 ---- gitlab/ingress.yaml | 30 ------------- gitlab/namespace.yaml | 4 -- gitlab/service.yaml | 49 ---------------------- 6 files changed, 175 deletions(-) delete mode 100644 gitlab/backup-pvc.yaml delete mode 100644 gitlab/deployment.yaml delete mode 100644 gitlab/gitlab-secret-config.yaml delete mode 100644 gitlab/ingress.yaml delete mode 100644 gitlab/namespace.yaml delete mode 100644 gitlab/service.yaml diff --git a/gitlab/backup-pvc.yaml b/gitlab/backup-pvc.yaml deleted file mode 100644 index dc57169..0000000 --- a/gitlab/backup-pvc.yaml +++ /dev/null @@ -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 diff --git a/gitlab/deployment.yaml b/gitlab/deployment.yaml deleted file mode 100644 index 14bb3f1..0000000 --- a/gitlab/deployment.yaml +++ /dev/null @@ -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 diff --git a/gitlab/gitlab-secret-config.yaml b/gitlab/gitlab-secret-config.yaml deleted file mode 100644 index f99969c..0000000 --- a/gitlab/gitlab-secret-config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -data: - reference.rb: ZXh0ZXJuYWxfdXJsICdodHRwczovL2dpdC5iZXRhLmhhbGlhLmRldicKZ2l0bGFiX3JhaWxzWydnaXRsYWJfZGVmYXVsdF90aGVtZSddID0gMgpyZWdpc3RyeV9leHRlcm5hbF91cmwgJ2h0dHBzOi8vZ2l0LmJldGEuaGFsaWEuZGV2JwpwdW1hWyd3b3JrZXJfcHJvY2Vzc2VzJ10gPSAwCnNpZGVraXFbJ21heF9jb25jdXJyZW5jeSddID0gNQpuZ2lueFsnbGlzdGVuX3BvcnQnXSA9IDgwCm5naW54WydsaXN0ZW5faHR0cHMnXSA9IGZhbHNlCmdpdGxhYl9rYXNbJ2VuYWJsZSddID0gdHJ1ZQpyZWdpc3RyeV9uZ2lueFsnZW5hYmxlJ10g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3J0ZXJbJ2xpc3Rlbl9hZGRyZXNzJ10gPSAnMC4wLjAuMDo5MTg3JwpnaXRhbHlbJ3Byb21ldGhldXNfbGlzdGVuX2FkZHInXSA9ICcwLjAuMC4wOjkyMzYnCmdpdGxhYl9yYWlsc1snbW9uaXRvcmluZ193aGl0ZWxpc3QnXSA9IFsnMC4wLjAuMCddCmdpdGxhYl9yYWlsc1sncHJvbWV0aGV1c19hZGRyZXNzJ10gPSAnMC4wLjAuMDo5MDkwJwpuZ2lueFsnc3RhdHVzJ11bJ29wdGlvbnMnXSA9IHsKICAic2VydmVyX3Rva2VucyIgPT4gIm9mZiIsCiAgImFjY2Vzc19sb2ciID0+ICJvZmYiLAogICJhbGxvdyIgPT4gIjAuMC4wLjAiLAogICJkZW55IiA9PiAiYWxsIiwKfQpwb3N0Z3Jlc3FsWydlbmFibGUnXSA9IGZhbHNlCmdpdGxhYl9yYWlsc1snZGJfYWRhcHRlciddID0gJ3Bvc3RncmVzcWwnCmdpdGxhYl9yYWlsc1snZGJfZW5jb2RpbmcnXSA9ICd1bmljb2RlJwpnaXRsYWJfcmFpbHNbJ2RiX2hvc3QnXSA9ICdsb2NhbGhvc3QnCmdpdGxhYl9yYWlsc1snZGJfcGFzc3dvcmQnXSA9ICdhYmVyYXRpb24nCmdpdGxhYl9yYWlsc1snbWFuYWdlX2JhY2t1cF9wYXRoJ10gPSB0cnVlCmdpdGxhYl9yYWlsc1snYmFja3VwX3BhdGgnXSA9ICIvYmFja3VwcyIK -kind: Secret -metadata: - creationTimestamp: null - name: gitlab-config - namespace: gitlab diff --git a/gitlab/ingress.yaml b/gitlab/ingress.yaml deleted file mode 100644 index 0363ba3..0000000 --- a/gitlab/ingress.yaml +++ /dev/null @@ -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 diff --git a/gitlab/namespace.yaml b/gitlab/namespace.yaml deleted file mode 100644 index 05c6da4..0000000 --- a/gitlab/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: gitlab diff --git a/gitlab/service.yaml b/gitlab/service.yaml deleted file mode 100644 index 30fc60a..0000000 --- a/gitlab/service.yaml +++ /dev/null @@ -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