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

98 lines
1.9 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:
chart: app-template
version: 1.3.x
sourceRef:
kind: HelmRepository
name: bjws-charts
namespace: flux-system
values:
image:
repository: gitea/gitea
2023-06-03 17:54:56 +00:00
tag: nightly-rootless
2023-04-26 02:09:26 +00:00
podLabels:
needsDatabase: "yes"
2023-04-26 02:23:20 +00:00
needsAuthentik: "yes"
2023-04-26 02:09:26 +00:00
env:
2023-06-03 17:53:29 +00:00
USER_UID: 10000
USER_GID: 10000
2023-04-26 02:09:26 +00:00
envFrom:
- secretRef:
2023-04-26 02:11:52 +00:00
name: gitea-secret
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:
mirror-to-gitea:
image: jaedle/mirror-to-gitea:latest
imagePullPolicy: Always
envFrom:
- secretRef:
name: gitea-sidecar-secret
2023-04-26 02:09:26 +00:00
service:
main:
ports:
http:
port: 3000
ssh:
enabled: true
2023-04-28 00:45:43 +00:00
type: NodePort
2023-04-26 02:09:26 +00:00
ports:
ssh:
enabled: true
port: 22
protocol: TCP
nodePort: 30022
probes:
liveness:
enabled: false
ingress:
main:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts:
2023-04-26 02:18:01 +00:00
- host: &host "git.${SECRET_NEW_DOMAIN}"
2023-04-26 02:09:26 +00:00
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
2023-04-26 02:14:20 +00:00
secretName: wildcard-main-tls
persistence:
storage:
enabled: true
type: hostPath
hostPath: /mnt/MainPool/Kubernetes/gitea
mountPath: /var/lib/gitea
2023-06-03 17:53:29 +00:00
podSecurityContext:
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
fsGroup: 10000
fsGroupChangePolicy: OnRootMismatch
resources:
requests:
cpu: 1m
memory: 340Mi
limits:
memory: 1Gi