migrate gitea

This commit is contained in:
Morten Olsen
2026-01-02 13:42:52 +01:00
parent 1a3c04df57
commit c35196c657
3 changed files with 21 additions and 24 deletions

View File

@@ -1,10 +1 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: OidcClient
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.globals.environment }}'
redirectUris:
- path: /user/oauth2/Authentik/callback
subdomain: '{{ .Values.subdomain }}'
matchingMode: strict
{{ include "common.oidc" . }}

View File

@@ -1,6 +1 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: PostgresDatabase
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.globals.environment }}'
{{ include "common.database" . }}

View File

@@ -7,7 +7,7 @@ subdomain: gitea
# Deployment configuration
deployment:
strategy: RollingUpdate
strategy: Recreate
replicas: 1
# Container configuration - multiple ports
@@ -57,6 +57,17 @@ virtualService:
private: true
servicePort: 80 # Route to the http service port
# OIDC client configuration
oidc:
enabled: true
redirectUris:
- "/user/oauth2/Authentik/callback"
subjectMode: user_username
# Database configuration
database:
enabled: true
# Environment variables
env:
USER_UID: "1000"
@@ -83,20 +94,20 @@ env:
GITEA__database__NAME:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: database
GITEA__database__HOST:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: host
GITEA__database__USER:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: user
GITEA__database__PASSWD:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: password