mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
migrate gitea
This commit is contained in:
@@ -1,10 +1 @@
|
|||||||
apiVersion: homelab.mortenolsen.pro/v1
|
{{ include "common.oidc" . }}
|
||||||
kind: OidcClient
|
|
||||||
metadata:
|
|
||||||
name: '{{ .Release.Name }}'
|
|
||||||
spec:
|
|
||||||
environment: '{{ .Values.globals.environment }}'
|
|
||||||
redirectUris:
|
|
||||||
- path: /user/oauth2/Authentik/callback
|
|
||||||
subdomain: '{{ .Values.subdomain }}'
|
|
||||||
matchingMode: strict
|
|
||||||
|
|||||||
@@ -1,6 +1 @@
|
|||||||
apiVersion: homelab.mortenolsen.pro/v1
|
{{ include "common.database" . }}
|
||||||
kind: PostgresDatabase
|
|
||||||
metadata:
|
|
||||||
name: '{{ .Release.Name }}'
|
|
||||||
spec:
|
|
||||||
environment: '{{ .Values.globals.environment }}'
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ subdomain: gitea
|
|||||||
|
|
||||||
# Deployment configuration
|
# Deployment configuration
|
||||||
deployment:
|
deployment:
|
||||||
strategy: RollingUpdate
|
strategy: Recreate
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
# Container configuration - multiple ports
|
# Container configuration - multiple ports
|
||||||
@@ -57,6 +57,17 @@ virtualService:
|
|||||||
private: true
|
private: true
|
||||||
servicePort: 80 # Route to the http service port
|
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
|
# Environment variables
|
||||||
env:
|
env:
|
||||||
USER_UID: "1000"
|
USER_UID: "1000"
|
||||||
@@ -83,20 +94,20 @@ env:
|
|||||||
GITEA__database__NAME:
|
GITEA__database__NAME:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{release}-pg-connection"
|
name: "{release}-connection"
|
||||||
key: database
|
key: database
|
||||||
GITEA__database__HOST:
|
GITEA__database__HOST:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{release}-pg-connection"
|
name: "{release}-connection"
|
||||||
key: host
|
key: host
|
||||||
GITEA__database__USER:
|
GITEA__database__USER:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{release}-pg-connection"
|
name: "{release}-connection"
|
||||||
key: user
|
key: user
|
||||||
GITEA__database__PASSWD:
|
GITEA__database__PASSWD:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{release}-pg-connection"
|
name: "{release}-connection"
|
||||||
key: password
|
key: password
|
||||||
|
|||||||
Reference in New Issue
Block a user