Files
homelab/infra/kubernetes/platform/gitea/application.yaml
Julia McGhee 8eefb12c97
All checks were successful
CI / lint-and-test (push) Successful in 19s
CI / build (push) Successful in 16s
Fix Gitea admin init: set email explicitly to avoid default conflict
2026-03-21 19:05:32 +00:00

93 lines
2.5 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gitea-helm
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: default
source:
repoURL: https://dl.gitea.com/charts/
chart: gitea
targetRevision: 12.5.0
helm:
valuesObject:
# Disable bundled dependencies — we use external DB and Valkey
postgresql:
enabled: false
postgresql-ha:
enabled: false
redis-cluster:
enabled: false
redis:
enabled: false
valkey:
enabled: false
valkey-cluster:
enabled: false
gitea:
admin:
existingSecret: gitea-admin-credentials
email: julia@coreworlds.io
additionalConfigFromEnvs:
- name: GITEA__database__PASSWD
valueFrom:
secretKeyRef:
name: gitea-pg-credentials
key: password
- name: VALKEY_PASSWORD
valueFrom:
secretKeyRef:
name: valkey-credentials
key: password
- name: GITEA__cache__HOST
value: redis://:$(VALKEY_PASSWORD)@valkey.platform.svc:6379/0
- name: GITEA__session__PROVIDER_CONFIG
value: redis://:$(VALKEY_PASSWORD)@valkey.platform.svc:6379/1
config:
database:
DB_TYPE: postgres
HOST: gitea-pg-rw.platform.svc:5432
NAME: gitea
USER: gitea
cache:
ADAPTER: redis
session:
PROVIDER: redis
server:
DOMAIN: gitea.coreworlds.io
ROOT_URL: https://gitea.coreworlds.io
SSH_DOMAIN: gitea.coreworlds.io
SSH_PORT: 2222
SSH_LISTEN_PORT: 2222
actions:
ENABLED: true
DEFAULT_ACTIONS_URL: github
packages:
ENABLED: true
persistence:
enabled: true
storageClass: longhorn-nvme
size: 20Gi
service:
http:
type: ClusterIP
port: 3000
ssh:
type: NodePort
port: 2222
nodePort: 30022
destination:
server: https://kubernetes.default.svc
namespace: platform
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true