98 lines
2.4 KiB
YAML
98 lines
2.4 KiB
YAML
service:
|
|
http:
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: git.dogar.dev
|
|
metallb.universe.tf/allow-shared-ip: gitea
|
|
ssh:
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: git.dogar.dev
|
|
metallb.universe.tf/allow-shared-ip: gitea
|
|
ingress:
|
|
enabled: true
|
|
className: nginx-internal
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: cloudflare-issuer
|
|
cert-manager.io/private-key-algorithm: ED25519
|
|
cert-manager.io/acme-challenge-type: dns01
|
|
cert-manager.io/private-key-size: "4096"
|
|
hosts:
|
|
- host: git.dogar.dev
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: gitea-tls
|
|
hosts:
|
|
- git.dogar.dev
|
|
gitea:
|
|
podAnnotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: "6060"
|
|
admin:
|
|
existingSecret: gitea-admin
|
|
metrics:
|
|
enabled: true
|
|
serviceMonitor:
|
|
enabled: true
|
|
config:
|
|
server:
|
|
ENABLE_PPROF: true
|
|
ENABLE_GZIP: true
|
|
LFS_START_SERVER: true
|
|
SSH_DOMAIN: git.dogar.dev
|
|
database:
|
|
DB_TYPE: postgres
|
|
HOST: postgres-cluster-rw.postgres-system.svc.cluster.local:5432
|
|
NAME: giteadb
|
|
USER: gitea
|
|
cache:
|
|
ADAPTER: memcache
|
|
HOST: memcached.memcached-system.svc.cluster.local:11211
|
|
session:
|
|
PROVIDER: db
|
|
PROVIDER_CONFIG: ""
|
|
queue:
|
|
TYPE: redis
|
|
lfs:
|
|
STORAGE_TYPE: local
|
|
service:
|
|
DISABLE_REGISTRATION: true
|
|
oauth2_client:
|
|
ENABLE_AUTO_REGISTRATION: true
|
|
mailer:
|
|
ENABLED: true
|
|
PROTOCOL: smtp+starttls
|
|
SMTP_ADDR: smtp.protonmail.ch
|
|
SMTP_PORT: 587
|
|
oauth:
|
|
- name: "authentik"
|
|
provider: "openidConnect"
|
|
existingSecret: gitea-oauth
|
|
autoDiscoverUrl: "https://auth.dogar.dev/application/o/gitea/.well-known/openid-configuration"
|
|
iconUrl: "https://goauthentik.io/img/icon.png"
|
|
scopes: "email profile"
|
|
additionalConfigFromEnvs:
|
|
- name: GITEA__DATABASE__PASSWD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gitea-postgres
|
|
key: password
|
|
- name: GITEA__QUEUE__CONN_STR
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gitea-redis
|
|
key: password
|
|
- name: GITEA__MAILER__PASSWD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: smtp-token
|
|
key: password
|
|
persistence:
|
|
enabled: true
|
|
accessModes:
|
|
- ReadWriteMany
|
|
postgresql-ha:
|
|
enabled: false
|
|
redis-cluster:
|
|
enabled: false
|