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
|
2023-06-04 06:13:03 +00:00
|
|
|
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
|
|
|
|
|
2023-06-04 06:04:54 +00:00
|
|
|
timeout: 5m
|
|
|
|
|
2023-04-26 02:09:26 +00:00
|
|
|
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
|
2023-06-04 05:10:47 +00:00
|
|
|
size: 30Gi
|
2023-06-04 06:24:48 +00:00
|
|
|
storageClass: hostpath
|
2023-06-04 05:10:47 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-06-04 06:17:25 +00:00
|
|
|
app.kubernetes.io/name: gitea-pv
|
2023-06-04 04:27:24 +00:00
|
|
|
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1m
|
|
|
|
memory: 340Mi
|
|
|
|
limits:
|
2023-06-04 06:20:54 +00:00
|
|
|
memory: 2Gi
|
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
|
2023-06-04 06:00:46 +00:00
|
|
|
# sidecars:
|
|
|
|
# - name: mirror-to-gitea
|
|
|
|
# image: jaedle/mirror-to-gitea:latest
|
|
|
|
# imagePullPolicy: Always
|
|
|
|
# envFrom:
|
|
|
|
# - secretRef:
|
|
|
|
# name: gitea-sidecar-secret
|
2023-04-28 00:34:37 +00:00
|
|
|
|
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 05:39:51 +00:00
|
|
|
enabled: false
|
|
|
|
# annotations:
|
|
|
|
# cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
# hostname: &host "budget.${SECRET_NEW_DOMAIN}"
|
|
|
|
#
|
|
|
|
# tls: true
|
|
|
|
# selfSigned: false
|
|
|
|
#
|
|
|
|
# extraTls:
|
|
|
|
# - hosts:
|
|
|
|
# - *host
|
|
|
|
# secretName: wildcard-main-tls
|
|
|
|
#
|
|
|
|
# secrets: nil
|
2023-06-04 04:35:06 +00:00
|
|
|
# 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
|