Add migration scripts and manifests for GitLab and Gitea to Longhorn
- Create .vscode/settings.json for YAML schema validation. - Add WISSENSBASIS.md for documentation on HomeLabScripts. - Implement migration job for GitLab from NFS to Longhorn with migrate-to-longhorn.yaml and migrate-to-longhorn.sh. - Add Gitea migration scripts and manifests for PostgreSQL to Longhorn. - Create persistent volume claims and deployments for Gitea and Homarr. - Set up namespaces and services for Homarr and Speedtest Tracker. - Add secrets for Homarr and Speedtest Tracker with sensitive data. - Configure Ingress for Speedtest Tracker with Traefik annotations. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -65,6 +65,21 @@ spec:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
# PVC: PostgreSQL (Longhorn target)
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: postgres-longhorn-pvc
|
||||
namespace: gitea
|
||||
spec:
|
||||
storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
# Deployment: PostgreSQL
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
@@ -74,6 +89,8 @@ metadata:
|
||||
namespace: gitea
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: postgres
|
||||
@@ -97,14 +114,12 @@ spec:
|
||||
volumeMounts:
|
||||
- name: postgres-storage
|
||||
mountPath: /var/lib/postgresql/data
|
||||
securityContext:
|
||||
runAsUser: 1001
|
||||
runAsGroup: 1000
|
||||
# fsGroup: 1000
|
||||
securityContext:
|
||||
fsGroup: 999
|
||||
volumes:
|
||||
- name: postgres-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: postgres-pvc
|
||||
claimName: postgres-longhorn-pvc
|
||||
|
||||
# Service: PostgreSQL
|
||||
---
|
||||
@@ -172,10 +187,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: gitea-storage
|
||||
mountPath: /data
|
||||
securityContext:
|
||||
# runAsUser: 1001
|
||||
# runAsGroup: 1000
|
||||
# fsGroup: 1000
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
volumes:
|
||||
- name: gitea-storage
|
||||
persistentVolumeClaim:
|
||||
|
||||
Reference in New Issue
Block a user