Files
klaster/apps/gitea/release.yaml

119 lines
2.7 KiB
YAML

apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: gitea-charts
namespace: gitea
spec:
interval: 24h
url: https://dl.gitea.com/charts/
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: gitea
namespace: gitea
spec:
interval: 30m
chart:
spec:
chart: gitea
version: 12.5.0
sourceRef:
kind: HelmRepository
name: gitea-charts
namespace: gitea
interval: 12h
values:
postgresql-ha:
enabled: false
postgresql:
enabled: false
primary:
persistence:
enabled: true
storageClass: mayastor-single-hdd
resources:
requests:
cpu: 0
valkey-cluster:
enabled: false
valkey:
enabled: true
primary:
persistence:
enabled: true
existingClaim: gitea-valkey-primary-lvmhdd-0
resources:
requests:
cpu: 0
persistence:
enabled: true
# We'll create PV and PVC manually
create: false
claimName: gitea-shared-storage-lvmhdd
gitea:
additionalConfigFromEnvs:
- name: GITEA__DATABASE__PASSWD
valueFrom:
secretKeyRef:
name: gitea-postgresql-cluster-lvmhdd-app
key: password
config:
database:
DB_TYPE: postgres
HOST: gitea-postgresql-cluster-lvmhdd-rw:5432
NAME: app
USER: app
indexer:
ISSUE_INDEXER_TYPE: bleve
REPO_INDEXER_ENABLED: true
webhook:
ALLOWED_HOST_LIST: garm.garm.svc.cluster.local
admin:
username: GiteaAdmin
email: gi@tea.com
passwordMode: initialOnlyRequireReset
service:
ssh:
annotations:
lbipam.cilium.io/sharing-key: gitea
lbipam.cilium.io/sharing-cross-namespace: nginx-ingress
lbipam.cilium.io/ips: 10.44.0.6,2001:470:61a3:400::6
type: LoadBalancer
port: 22
# Requirement for sharing ip with other service
externalTrafficPolicy: Cluster
ipFamilyPolicy: RequireDualStack
ingress:
enabled: true
className: nginx-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt
acme.cert-manager.io/http01-edit-in-place: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "100m"
hosts:
- host: gitea.lumpiasty.xyz
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- gitea.lumpiasty.xyz
secretName: gitea-ingress
resources:
requests:
cpu: 0
initContainers:
resources:
requests:
cpu: 0