k3s-cluster/cluster/apps/default/gitea/helm-release.yaml

78 lines
1.6 KiB
YAML
Raw Normal View History

2023-04-26 02:09:26 +00:00
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: gitea
namespace: default
spec:
interval: 5m
chart:
spec:
2023-06-04 04:27:24 +00:00
chart: gitea
version: 0.3.2
2023-04-26 02:09:26 +00:00
sourceRef:
kind: HelmRepository
2023-06-04 04:27:24 +00:00
name: bitnami-charts
2023-04-26 02:09:26 +00:00
namespace: flux-system
values:
2023-06-04 04:27:24 +00:00
existingSecret: gitea-secret
existingSecretKey: admin-password
2023-04-26 02:09:26 +00:00
2023-06-04 04:27:24 +00:00
persistence:
enabled: true
hostPath: /mnt/MainPool/Kubernetes/gitea
resources:
requests:
cpu: 1m
memory: 340Mi
limits:
memory: 1Gi
2023-04-26 02:09:26 +00:00
2023-06-04 04:27:24 +00:00
podSecurityContext:
enabled: true
fsGroup: 10000
2023-04-26 02:09:26 +00:00
2023-06-04 04:27:24 +00:00
containerSecurityContext:
enabled: true
runAsUser: 10000
runAsNonRoot: true
2023-04-26 02:09:26 +00:00
2023-04-28 00:34:37 +00:00
# Sidecar used for mirroring GitHub repos to gitea
sidecars:
2023-06-04 04:42:27 +00:00
- name: mirror-to-gitea
2023-04-28 00:34:37 +00:00
image: jaedle/mirror-to-gitea:latest
imagePullPolicy: Always
envFrom:
- secretRef:
name: gitea-sidecar-secret
2023-04-26 02:09:26 +00:00
service:
2023-06-04 04:27:24 +00:00
type: ClusterIP
nodePorts:
ssh: 30022
2023-04-26 02:09:26 +00:00
ingress:
2023-06-04 04:27:24 +00:00
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
hostname: "budget.${SECRET_NEW_DOMAIN}"
2023-06-04 04:35:06 +00:00
tls: true
# secrets:
# - wildcard-main-tls
2023-06-03 17:53:29 +00:00
2023-06-04 04:27:24 +00:00
postgresql:
enabled: false
2023-06-03 18:28:02 +00:00
2023-06-04 04:27:24 +00:00
externalDatabase:
host: postgresql.database
port: 5432
user: gitea
database: gitea
existingSecret: gitea-secret
existingSecretPasswordKey: db-password
2023-06-03 17:53:29 +00:00
2023-06-04 04:27:24 +00:00
volumePermissions:
enabled: true